The Agent Skills Directory
npx skills add https://smithery.ai/skills/tuanvo3423/flutter-ui-implementation-standard本技能定义了实现 UI 和处理资源的严格规则,以确保一致性并防止错误。
目标:防止出现"随机字符串"文件名并确保设计保真度。
mkl6t7hq...svg)。
snake_case 名称。icon_<名称>.svg(例如 icon_user.svg、icon_back.svg)nav_<名称>.svg(例如 nav_home.svg)img_<名称>.pngbg_<名称>.pngIcons.* 替代设计资源,除非明确要求或该资源缺失。flutter_svg 包和 SvgPicture.asset()。目标:防止常见的 lint 错误(如 const_with_non_const)并确保代码整洁。
BorderRadius.circular(N) 不是常量。BorderRadius.all(Radius.circular(N))BorderRadius.circular,则移除 const 关键字。AppTheme / AppColors 中定义所有颜色和渐变。ShaderMask。BoxDecoration 的 。assets/images/。AppTheme。目标:通过将页面特定的 UI 块拆分到 components/ 中,保持每个屏幕的可维护性。
lib/src/features/<功能>/presentation/components/components/ 中的 widget每周安装次数
–
来源
首次出现
–
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., )广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Containernav_home.svgimg_<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/ widgetsWeekly Installs
–
Source
First Seen
–
Flutter无障碍功能实现指南:UI设计、语义组件与网页适配完整教程
3,100 周安装