flutter-build-responsive-layout

flutter-build-responsive-layout is a skill for Claude Code from flutter/agent-plugins. It costs 51 tokens per session (1,488 once invoked), scanned A, original, BSD-3-Clause.

Guidance for building Flutter layouts that adapt to the space available in the app window. Flutter is a toolkit for building apps, and responsive layouts change their arrangement for different screen sizes.

In plain words
What is it for?
Use it to choose widget layouts from available width, measure window space, and size widgets with Flutter tools such as LayoutBuilder, MediaQuery, and Expanded or Flexible.
Why use it?
It helps prevent interfaces from breaking when an app runs on phones, tablets, resizable windows, or multiple windows.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dart-flutter plugin — 31 skills shipped together

Good fit Use it to choose widget layouts from available width, measure window space, and size widgets with Flutter tools such as LayoutBuilder, MediaQuery, and Expanded or Flexible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flutter/agent-plugins/flutter-build-responsive-layout
About the project

Flutter Agent Plugins is a collection maintained by the Flutter team that extends coding agents with Flutter-specific skills, rules, MCP configuration, and bundled workflows. Flutter developers use it to help agents perform tasks such as testing and building widget previews. The catalogue entries are components of these agent plugins.

flutter/agent-plugins · 3,069 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add flutter/agent-plugins --skill flutter-build-responsive-layout
Clone the repo
git clone --depth 1 https://github.com/flutter/agent-plugins

Made for: Claude Code.

Or install dart-flutter, the plugin that ships this one along with the rest of its 31 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-build-responsive-layout

README.md
[![agentmods](https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-build-responsive-layout/github.svg)](https://agentmods.dev/skills/flutter/agent-plugins/flutter-build-responsive-layout)
Your own site
<a href="https://agentmods.dev/skills/flutter/agent-plugins/flutter-build-responsive-layout"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-build-responsive-layout/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-build-responsive-layout

Your own site · 80×15
<a href="https://agentmods.dev/skills/flutter/agent-plugins/flutter-build-responsive-layout"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-build-responsive-layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,488 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 13 Jul 2026
  • Snyk pass 13 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01488
Opus 5.5 $0.00020 $0.00595
Sonnet 5.5 $0.00010 $0.00298
Haiku 4.5 $0.00005 $0.00149

Measured 1mo ago against content hash c7a5d18071c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-build-responsive-layout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/flutter-build-responsive-layout/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implementing Adaptive Layouts

Contents

Space Measurement Guidelines

Determine the available space accurately to ensure layouts adapt to the app window, not just the physical device.

  • Use MediaQuery.sizeOf(context) to get the size of the entire app window.
  • Use LayoutBuilder to make layout decisions based on the parent widget's allocated space. Evaluate constraints.maxWidth to determine the appropriate widget tree to return.
  • Do not use MediaQuery.orientationOf or OrientationBuilder near the top of the widget tree to switch layouts. Device orientation does not accurately reflect the available app window space.
  • Do not check for hardware types (e.g., "phone" vs. "tablet"). Flutter apps run in resizable windows, multi-window modes, and picture-in-picture. Base all layout decisions strictly on available window space.

Widget Sizing and Constraints

Understand and apply Flutter's core layout rule: Constraints go down. Sizes go up. Parent sets position.

  • Distribute Space: Use Expanded and Flexible within Row, Column, or Flex widgets.
    • Use Expanded to force a child to fill all remaining available space (equivalent to Flexible with fit: FlexFit.tight and a flex factor of 1.0).
    • Use Flexible to allow a child to size itself up to a specific limit while still expanding/contracting. Use the flex factor to define the ratio of space consumption among siblings.
  • Constrain Width: Prevent widgets from consuming all horizontal space on large screens. Wrap widgets like GridView or ListView in a ConstrainedBox or Container and define a maxWidth in the BoxConstraints.
  • Lazy Rendering: Always use ListView.builder or GridView.builder when rendering lists with an unknown or large number of items.

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 140 lines · 51 tokens per session scan A c7a5d18071c6

Subscribe to this mod's changes

flutter-build-responsive-layout is a skill published in the GitHub repository flutter/agent-plugins (3,069 stars, last pushed today), licensed BSD-3-Clause. It adds 51 tokens to every session and 1,488 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

glance-canonical-layouts

Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar).

android/skills · 56 tokens

display-glasses-with-jetpack-compose-glimmer

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an…

android/skills · 91 tokens

expo-design-system

Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when creating or organizing…

expo/skills · 197 tokens

axiom-audit-liquid-glass

Use when the user mentions Liquid Glass review, iOS 26 UI updates, toolbar improvements, or visual effect migration.

CharlesWiltgen/Axiom · 32 tokens

axiom-audit-ux-flow

Use when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app.

CharlesWiltgen/Axiom · 43 tokens

omh-apple-design

This is an OMH apple-design workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 83 tokens