smithery/ngxtm

Flutter UI Widgets

Principles for maintainable UI components.

Installation

$ npx skills add smithery/ngxtm --skill flutter-ui-widgets

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/ngxtm · top by installs.

npx skills add smithery/ngxtm

Browse all from smithery/ngxtm

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
labels
["ui","widgets"]
triggers
{"files":["**_page.dart","**_screen.dart","**\/widgets\/**"],"keywords":["StatelessWidget","const","Theme","ListView"]}

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,149 B
  • docs SUMMARY.md 68 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

UI & Widgets (P1)

  • State: Use StatelessWidget by default. StatefulWidget only for local state/controllers.
  • Composition: Extract UI into small, atomic const widgets.
  • Theming: Use Theme.of(context). No hardcoded colors.
  • Layout: Use Flex + Gap/SizedBox.
  • Specialized:

- SelectionArea: For multi-widget text selection. - InteractiveViewer: For zoom/pan. - ListWheelScrollView: For pickers. - IntrinsicWidth/Height: Avoid unless strictly required.

  • Large Lists: Always use ListView.builder.
class AppButton extends StatelessWidget {
  final String label;
  final VoidCallback onPressed;
  const AppButton({super.key, required this.label, required this.onPressed});

  @override
  Widget build(BuildContext context) => ElevatedButton(onPressed: onPressed, child: Text(label));
}

Related Topics

performance | testing