agentleFS
thienqothienqo/flutter-skills/skills/flutter-ui-patterns/SKILL.md

flutter-ui-patterns

Skill16 starsChanged 2 months agoBSD-3-ClauseView on GitHub

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

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Prefer immutable widget configuration and const constructors where valid.

    line 16
  2. Very specific:

    Keep side effects out of build.

    line 17
  3. Distinctive:

    Use the project theme and semantic design tokens instead of scattered literal styles.

    line 18
  4. Distinctive:

    Keep keys stable and purposeful.

    line 21
  5. Distinctive:

    Read forms and input when implementing validation, focus traversal, autofill, asynchronous submission, or field-error behavior.

    line 29
  6. Distinctive:

    Read widget previews when adding or repairing Flutter Widget Previewer annotations and fixtures.

    line 30
  7. Distinctive:

    Test meaningful rendered states and interactions.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 when implementing validation, focus traversal, autofill, asynchronous submission, or field-error behavior.
  • Read widget previews 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.