Appearance
🎨 Colors, Themes & Styles Standards for Flutter
Common Violations
❌ DO NOT Violate These Rules
- Don't hardcode colors or use
Colors.whiteorColors.blackdirectly from flutter'sColorsclass instead use the colors defined inapp_colors.dart. - Don't use inconsistent spacing - Use UI helper constants
- Don't ignore theme persistence - Always persist theme changes if needed.
✅ ALWAYS Follow These Rules
- Use centralized color classes defined in
app_colors.dartfor consistent color management - Add the general UI component (ike dialogs, Bottom Sheets, etc.) theme in
ThemeDatain theapp_theme.dartfile and avoid hardcoding the theme in the widgets unless it's absolutely necessary. - Always use the spacing, padding, margin, etc. constants defined in
app_spacing.dartfor consistent spacing. - You can add new constants to the
ui_helper.dartfile if needed (do not forget to notify the team about the new constants).