Strict rules for UI implementation, assets, and page component composition. Invoke when building screens/widgets or adding assets.
This skill defines the STRICT rules for implementing UI and handling assets to ensure consistency and prevent errors.
Goal: Prevent "random string" filenames and ensure design fidelity.
mkl6t7hq...svg).snake_case names before using them.icon_<name>.svg (e.g., icon_user.svg, icon_back.svg)nav_<name>.svg (e.g., nav_home.svg)img_<name>.pngbg_<name>.pngIcons.* unless explicitly requested or if the asset is missing.flutter_svg package and SvgPicture.asset() for all vector icons.Goal: Prevent common lint errors (like const_with_non_const) and ensure clean code.
BorderRadius.circular(N) is NOT CONST.BorderRadius.all(Radius.circular(N))const keyword if using BorderRadius.circular.AppTheme / AppColors first.ShaderMask for gradient text.Container with BoxDecoration for gradient backgrounds.assets/images/.AppTheme with necessary colors and styles.Goal: Keep each screen maintainable by splitting page-specific UI blocks into components/.
lib/src/features/<feature>/presentation/components/components/ widgets