Appearance
📝 Naming Conventions Standards for Flutter
Core Standards
General Naming Rules
- Use camelCase for variables, functions, methods, and parameters
- Use PascalCase for classes, interfaces, enums, and typedefs
- Use snake_case for file names and directory names
- Use UPPER_SNAKE_CASE for constants and enum values
- Use descriptive names that clearly indicate purpose
- Avoid abbreviations unless they are widely understood
- Use consistent naming across the entire project
- Follow Dart/Flutter conventions for all naming
Common Violations
❌ DO NOT Violate These Rules
- Don't use inconsistent casing - Follow camelCase, PascalCase, snake_case rules
- Don't use abbreviations - Use full, descriptive names
- Don't use unclear names - Use names that clearly indicate purpose
- Don't mix naming conventions - Use consistent conventions throughout
- Don't use special characters - Avoid special characters in names
- Don't use reserved words - Avoid Dart/Flutter reserved words
- Don't use hardcoded values - Use named constants instead
✅ ALWAYS Follow These Rules
- Use camelCase for variables, functions, methods, and parameters
- Use PascalCase for classes, interfaces, enums, and typedefs
- Use snake_case for file names and directory names
- Use UPPER_SNAKE_CASE for constants and enum values
- Use descriptive names that clearly indicate purpose
- Use consistent naming across the entire project
- Use verb-noun pattern for function names
- Use appropriate suffixes for different types (Page, Widget, Service, etc.)
- Use consistent import organization by type
- Use relative imports for local files