flutter-adaptive-ui

flutter-adaptive-ui is a skill for Claude Code, Codex from MADTeacher/mad-agents-skills. It costs 83 tokens per session (1,202 once invoked), scanned A, original, MIT.

A guide for building Flutter interfaces that adapt to available screen space, from small phones to tablets, desktops, browsers, and foldable devices.

In plain words
What is it for?
Use it to create or review responsive navigation, dialogs, lists, grids, input flows, breakpoints, and layouts driven by window or parent constraints.
Why use it?
It helps prevent problems such as overflowing layouts, unreadable wide content, lost state, and unusable keyboard, mouse, or touch interactions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or review responsive navigation, dialogs, lists, grids, input flows, breakpoints, and layouts driven by window or parent constraints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madteacher/mad-agents-skills/flutter-adaptive-ui
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 MADTeacher/mad-agents-skills --skill flutter-adaptive-ui
Clone the repo
git clone --depth 1 https://github.com/MADTeacher/mad-agents-skills

Made for: Claude Code, Codex.

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-adaptive-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/madteacher/mad-agents-skills/flutter-adaptive-ui/github.svg)](https://agentmods.dev/skills/madteacher/mad-agents-skills/flutter-adaptive-ui)
Your own site
<a href="https://agentmods.dev/skills/madteacher/mad-agents-skills/flutter-adaptive-ui"><img src="https://agentmods.dev/badge/skills/madteacher/mad-agents-skills/flutter-adaptive-ui/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-adaptive-ui

Your own site · 80×15
<a href="https://agentmods.dev/skills/madteacher/mad-agents-skills/flutter-adaptive-ui"><img src="https://agentmods.dev/badge/skills/madteacher/mad-agents-skills/flutter-adaptive-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,202 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 1 May 2026
  • Snyk pass 1 May 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.00083 $0.01202
Opus 5 $0.00042 $0.00601
Sonnet 5 $0.00017 $0.00240
Haiku 4.5 $0.00008 $0.00120

Measured 11d ago against content hash 05a1c497aa0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

flutter-adaptive-ui 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 11d 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.

flutter-adaptive-ui/SKILL.md · 75 lines

How it starts

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

Flutter Adaptive UI

You are a Flutter adaptive UI implementation agent. Your job is to make the UI work from narrow mobile windows to expanded desktop/web layouts without guessing from device type.

Principle 0

Adaptive Flutter UI is based on available constraints, not platform labels. Use window or parent constraints for layout decisions, keep touch usable first, and add mouse, keyboard, and platform behavior as explicit branches that can be tested.

Core rule: constraints go down, sizes go up, parent sets position.

Default breakpoints:

  • Compact: width < 600
  • Medium: 600 <= width < 840
  • Expanded: width >= 840

Workflow

  1. Identify the user flow, target form factors, supported platforms, and the expensive failure mode: overflow, unreadable wide content, lost state, inaccessible keyboard flow, or wrong platform behavior.
  2. Inspect existing widgets before changing layout. Find navigation, dialogs, lists, grids, fixed widths/heights, orientation checks, Platform.* layout checks, and custom input/focus handling.
  3. Abstract shared data before branching. For example, create one destination model used by both NavigationBar and NavigationRail.
  4. Measure the right space:
    • Use MediaQuery.sizeOf(context) for app-level or page-level window decisions.
    • Use LayoutBuilder when the branch depends on the parent constraints of a widget subtree.
  5. Branch by breakpoints or capabilities, not by device type. Use compact/medium/expanded layouts for space changes; use Capability and Policy objects for what the app can do or should do.
  6. Implement the smallest adaptive change that preserves state. Keep scroll position, selected navigation destination, form input, and focus stable across resize/orientation/fold changes.
  7. Validate on at least compact and expanded widths. Include medium width when the implementation has a distinct tablet layout.

Resource Routing

Task Read/use Purpose
Need the full adaptive design process adaptive-workflow.md Abstract, measure, branch workflow and breakpoint choice
Need constraints or overflow diagnosis layout-constraints.md Flutter layout rules and edge cases
Need basic layout widget guidance layout-basics.md Rows, columns, alignment, sizing, and composition
Need common layout widget behavior layout-common-widgets.md Container, GridView, ListView, Stack, Card, ListTile
Need adaptive UX guardrails adaptive-best-practices.md Orientation, width, inputs, state, and performance guidance
Need platform behavior branching adaptive-capabilities.md Capability and Policy structure
Need responsive navigation starter code responsive_navigation.dart Copy only after fitting destinations and selected state to the target app
Need Capability/Policy starter code capability_policy_example.dart Copy only after replacing placeholder behavior with real app services

Read the full file on GitHub · 75 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. 11d ago First seen · 75 lines · 83 tokens per session scan A 05a1c497aa0b

Subscribe to this mod's changes

flutter-adaptive-ui is a skill published in the GitHub repository MADTeacher/mad-agents-skills (108 stars, last pushed 4mo ago), licensed MIT. It adds 83 tokens to every session and 1,202 once invoked, about $0.0004 per session on Opus 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

signals-flutter

Highly optimized Flutter UI bindings and GPU rendering for reactive signals.

rodydavis/signals.dart · 16 tokens

flutter-use-column-row-first

Use when building any Flutter screen or component to choose responsive Row, Column, Expanded, Flexible, and Spacer layouts before fixed-size or coordinate-based alternatives.

evanca/flutter-ai-rules · 36 tokens

flutter-mcp-toolkit-maintain-web

Maintains fluttertestapp and intentcall web targets (Chrome, web codegen, WebMCP bootstrap, web-showcase, webmcp verify). Use when editing web/index.html, agentmanifest.json, intentcallwebmcp.generated.js, web platform sync, Chrome dogfood, or WebMCP modelContext.

Arenukvern/mcp_flutter · 74 tokens

generating-flutter-ui

Generative UI (GenUI) for Flutter using AI models like Google Gemini, Anthropic Claude, or OpenAI via the genui package. Use this skill when building dynamic AI-driven interfaces, conversational UI flows, server-rendered screen layouts, LLM-powered dashboards, chat-based UI generation, or implementing prompt-to-UI…

Poorgramer-Zack/dart-expert-skills · 121 tokens

flutter

Build Flutter widget interfaces, organize state and async behavior, and prepare platform integrations and release builds.

alivirgo/Major-AI-Skills · 21 tokens

flutter-routing

Declarative routing and navigation for Flutter using GoRouter and AutoRoute. Use when implementing navigation guards, nested routes, type-safe routing, or deep link handling.

Poorgramer-Zack/dart-expert-skills · 35 tokens