AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Responsive Adaptive

skill-draz26648-flutter-claude-skills-responsive-adaptive · by draz26648

Breakpoint rules and adaptive layout conventions for Flutter — LayoutBuilder for component decisions, MediaQuery for screen decisions, and the rule that the design artboard width is a reference and never a hardcoded target. Use this whenever writing layout code, whenever a RenderFlex overflow appears, whenever tablet or desktop or foldable support comes up, whenever a fixed pixel dimension is abo…

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-draz26648-flutter-claude-skills-responsive-adaptive

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-draz26648-flutter-claude-skills-responsive-adaptive)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
yesterday

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Responsive Adaptive? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Responsive and Adaptive Layout

A design file gives you one width. The app runs on hundreds. Every fixed dimension copied from the artboard is a future overflow.

Breakpoints

| Name | Width | Typical | |---|---|---| | compact | < 600 | phones, portrait | | medium | 600–839 | small tablets, phones landscape, unfolded | | expanded | ≥ 840 | tablets, desktop |

Define these once in core/layout/breakpoints.dart. Never inline a magic number comparison in a widget.

Which tool for which decision

LayoutBuilder for how a component lays itself out. It reports the space the widget actually has, which is what the widget needs to know. A card in a 400pt sidebar on a 1200pt screen should lay out as a narrow card — MediaQuery would tell it the screen is wide and it would be wrong.

MediaQuery for screen-level decisions: navigation pattern, number of grid columns for the whole page, whether to show a modal or a side panel.

Reading MediaQuery.sizeOf(context) inside a leaf widget is almost always the wrong tool. Note sizeOf rather than MediaQuery.of(context).size — the latter subscribes the widget to every MediaQuery change including keyboard appearance, causing rebuilds on every keystroke.

Rules

No hardcoded screen dimensions. width: 390 is a bug regardless of what the design says. Fixed sizes are only valid for things that are genuinely fixed: an icon, an avatar, a fixed-height app bar.

Avoid percentage-of-screen sizing for text containers. width: screenWidth * 0.8 looks fine at the design width and breaks at 2.0 text scale. Let content determine height and constrain with ConstrainedBox where a maximum is genuinely needed.

Scroll by default. Any screen that can plausibly overflow — which is any screen with more than three elements once text scale is raised — goes in a scroll view. Wrap fixed layouts in SingleChildScrollView with physics: ClampingScrollPhysics() rather than discovering the overflow on a small device.

Handle the keyboard. resizeToAvoidBottomInset plus a scroll view, or the form disappears behind the keyboard on short screens.

Safe areas are not optional. SafeArea on every screen, and mind that a bottom navigation bar needs the bottom inset while the content above it does not.

Orientation and foldables

Do not lock orientation without a product reason. If landscape is supported, a two-column layout above the medium breakpoint is usually the right move rather than stretching a single column to 900pt — a text line longer than about 75 characters is measurably harder to read.

Common mistakes

  • MediaQuery.of(context).size.width * 0.44 to fit two cards in a row. Use

GridView or Expanded — the arithmetic version breaks the moment padding changes.

  • Testing only on the simulator's default device. Check the smallest supported device

and the largest, at 2.0 text scale, before considering layout work finished.

  • Using Wrap where Flexible was needed. Wrap moves the overflowing item to the

next line, which is rarely what a design intends for a row of two elements.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.