Flutter Theme Aware

Enforces ThemeData discipline in Flutter widgets. Triggers automatically whenever the model is about to write a Color, TextStyle, or Decoration in a widget. Hardcoded colors (Colors.blue, 0xFFFFFFFF, Color(0xFFXXXXXX) inline) are forbidden in widget code. All colors must come from Theme.of(context).colorScheme.* or a custom ColorScheme extension. All text styles must come from Theme.of(context).textTheme.* with optional copyWith. The theme itself is defined ONCE in a central theme file, supports both light and dark modes, and uses Material 3 ColorScheme.fromSeed for color generation unless a brand requires exact hex values. Use when this capability is needed.

tomevault-io 20b05e7 2 files · 9.2 KB Updated

File contents

tomevault-io/skills-registry/tree/main/axisting--axistia-flutter-skills--flutter-theme-aware commit 20b05e78c0

Frequently asked questions

npx skillmds@latest add tomevault-io/flutter-theme-aware