Skip to content
Back to skills

Flutter Ui Patterns

ASecurity

Build and refactor Flutter widgets, forms with stale-safe asynchronous validation and duplicate-submit handling, widget previews, component APIs, and UI state boundaries. Use for form behavior over existing services; add networking or concurrency only when infrastructure changes, and route visual polish, responsive layout, navigation, animation, and performance to their specialists.

  • 22 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 9, 2026
developmentnodeapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add thienqo/flutter-skills --skill flutter-ui-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flutter Ui Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flutter Ui Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thienqo-flutter-ui-patterns/badge)](https://www.skillsdirectory.com/skills/thienqo-flutter-ui-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: flutter-ui-patterns
description: Build and refactor Flutter widgets, forms with stale-safe asynchronous validation and duplicate-submit handling, widget previews, component APIs, and UI state boundaries. Use for form behavior over existing services; add networking or concurrency only when infrastructure changes, and route visual polish, responsive layout, navigation, animation, and performance to their specialists.
---

# Flutter UI Patterns

Build declarative interfaces whose widget tree reflects state clearly and remains easy to test.

Visual hierarchy, token selection, typography, color, surfaces, and aesthetic direction belong to `flutter-ui-design`. This skill owns implementing those decisions with maintainable widgets.

## Composition

- Extract widgets around cohesive UI concepts, reuse, isolated state, or test value—not arbitrary file length.
- Split files by responsibility, not one public widget per file. Keep small private (`_`-prefixed) widgets that only serve one screen or feature in that screen's file; give a widget its own file when it is reused, has isolated state, or is tested alone.
- Prefer immutable widget configuration and `const` constructors where valid.
- Keep side effects out of `build`; trigger them from lifecycle-safe controllers, state objects, or explicit callbacks.
- Use the project theme and semantic design tokens instead of scattered literal styles.
- Preserve platform conventions where Material and Cupertino behavior should differ.
- Give forms explicit validation, focus, submission, and error behavior.
- Keep keys stable and purposeful; do not use random or changing keys to force rebuilds.

## State boundaries

Own controllers, focus nodes, and animation controllers in the lifecycle that creates them, and dispose them there. Hoist state only when another component must coordinate it.

## Load references conditionally

- Read [forms and input](references/forms-and-input.md) when implementing validation, focus traversal, autofill, asynchronous submission, or field-error behavior.
- Read [widget previews](references/widget-previews.md) when adding or repairing Flutter Widget Previewer annotations and fixtures.

## Verification

Test meaningful rendered states and interactions. Check text scaling, keyboard input where supported, light/dark themes, and at least the smallest and largest intended form factors.

## Sources

- [Flutter UI](https://docs.flutter.dev/ui)
- [Widget catalog](https://docs.flutter.dev/ui/widgets)
- [Flutter forms cookbook](https://docs.flutter.dev/cookbook/forms)
- [Flutter Widget Previewer](https://docs.flutter.dev/tools/widget-previewer)

Files in this skill

  • SKILL.md2.6 KB
  • references/forms-and-input.md4.2 KB
  • references/widget-previews.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.