agentleFS
thienqothienqo/flutter-skills/skills/flutter-responsive-layout/SKILL.md

flutter-responsive-layout

Skill16 starsChanged 2 months agoBSD-3-ClauseView on GitHub

Build or repair adaptive Flutter layouts across devices, constraints, breakpoints, overlap, clipping, orientation, and input modes. Use with flutter-accessibility when text scaling causes reflow, clipping, or disappearing controls; not for general widget state architecture.

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

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Use LayoutBuilder when a subtree responds to local constraints and MediaQuery when behavior depends on window or accessibility properties.

    line 16
  2. Distinctive:

    Prefer flexible constraints, wrapping, scrolling, or alternate composition over fixed width/height patches.

    line 18
  3. Distinctive:

    Keep readable content widths on large displays instead of stretching every element.

    line 19
  4. Very specific:

    Avoid IntrinsicHeight or repeated intrinsic measurement on hot, complex trees without evidence.

    line 22
  5. Distinctive:

    When components overlap, become clipped, or cover an action, follow the geometry, viewport, and fixture testing reference.

    line 28
  6. Distinctive:

    When adaptive navigation is in scope, follow the adaptive navigation patterns reference.

    line 32

≈ “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 Responsive Layout

Design from the constraints supplied by the parent, not from a guessed device model.

Diagnose

Reproduce the layout on the failing viewport with text scaling and the relevant platform chrome. Read the first meaningful constraint or overflow failure and identify which widget imposed the incompatible size. When no framework exception occurs, inspect the geometry and hit-test behavior of the affected components instead of assuming that a clean console proves the layout is usable.

Rules

  • Use LayoutBuilder when a subtree responds to local constraints and MediaQuery when behavior depends on window or accessibility properties.
  • Choose a small set of content-driven breakpoints; do not branch on specific device names.
  • Prefer flexible constraints, wrapping, scrolling, or alternate composition over fixed width/height patches.
  • Keep readable content widths on large displays instead of stretching every element.
  • Adapt navigation and information density when space changes materially.
  • Respect safe areas, display features, keyboard insets, text scaling, and both pointer and touch input.
  • Avoid IntrinsicHeight or repeated intrinsic measurement on hot, complex trees without evidence.

Verification

Exercise boundary widths just below and above each breakpoint, long localized strings, large text, landscape, and the intended desktop/web window sizes. Add a focused widget or golden test for regressions that visual assertions can represent reliably.

When components overlap, become clipped, or cover an action, follow the geometry, viewport, and fixture testing reference. Define explicit spatial relationships for important components rather than treating every intersecting render box as a defect.

References

When adaptive navigation is in scope, follow the adaptive navigation patterns reference.

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.