flutter-design

flutter-design is a skill for Claude Code, Codex from m3taz-ahmed/ai-globals. It costs 44 tokens per session (2,111 once invoked), scanned A, original, MIT.

A design and implementation guide for Flutter interfaces, using Flutter’s Material 3 components, responsive layouts, themes, animation, and accessibility practices. Flutter is a toolkit for building apps from one Dart codebase.

In plain words
What is it for?
Use it to create design systems, convert Figma designs into Flutter screens, build responsive and right-to-left layouts, define themes and design tokens, and add accessible motion and components.
Why use it?
It helps keep an app’s colors, spacing, typography, interactions, and dark mode consistent across screen sizes and platforms. It also reduces accessibility and design inconsistencies when turning designs into Flutter widgets.

Skill for Claude CodeCodex

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

Good fit Use it to create design systems, convert Figma designs into Flutter screens, build responsive and right-to-left layouts, define themes and design tokens, and add accessible motion and components.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/m3taz-ahmed/ai-globals/flutter-design
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 m3taz-ahmed/ai-globals --skill flutter-design
Clone the repo
git clone --depth 1 https://github.com/m3taz-ahmed/ai-globals

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-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/flutter-design/github.svg)](https://agentmods.dev/skills/m3taz-ahmed/ai-globals/flutter-design)
Your own site
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/flutter-design"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/flutter-design/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-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/flutter-design"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/flutter-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,111 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.
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.00044 $0.02111
Opus 5 $0.00022 $0.01056
Sonnet 5 $0.00009 $0.00422
Haiku 4.5 $0.00004 $0.00211

Measured 12d ago against content hash 21c2cb8dddfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

flutter-design 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 12d 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.

skills/flutter-design/SKILL.md · 59 lines

How it starts

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

[SKILL] flutter-design [OBJ] Design and implement beautiful, accessible, responsive Flutter UIs with a rigorous design system — from Figma to pixel-perfect widgets, Material 3 theming, motion design, and full accessibility compliance. [PERSONA] UX (primary), MOBILE (secondary). [PARENT] flutter-architect (engineering layer -> flutter-developer).

[RULES]

  1. [CMD] Context7 IDs: Flutter /flutter/website; Flutter API /websites/api_flutter_dev; Material 3 /material-foundation/material-web; Google Fonts /google/fonts; Rive /rive-app/rive-flutter; Lottie /airbnb/lottie-flutter; Animate.js-style animations package /flutter/packages.
  2. [REQ] [VER-01] Pin to pubspec.lock. Reference baseline: Flutter 3.47 / Dart 3.13 (Aug 2026). Material 3 is default ON — design for M3 components (NavigationBar, SearchBar, SegmentedButton, FilledButton/OutlinedButton/TextButton hierarchy, Card with CardTheme, Dialog/AlertDialog M3 spec).
  3. [REQ] Design system foundation (define ONCE in lib/config/theme/):
    • Color: ColorScheme.fromSeed(seedColor:) for brand-driven palettes; expose via Theme.of(context).colorScheme ONLY. Define semantic tokens (primary, secondary, tertiary, surface, background, error, onX) — never raw Color(0x...) in widgets. Support light + dark + Brightness.system.
    • Typography: TextTheme with named scales (displayLarge..bodySmall, labelLarge..labelSmall). Use bundled fonts or google_fonts (gen-offline for release). Access via Theme.of(context).textTheme.X. Never TextStyle(fontSize: 14) in widgets.
    • Spacing: token constants (spacingXs=4, sm=8, md=16, lg=24, xl=32) or ThemeExtension<Spacing>. Use SizedBox(height: AppSpacing.medium) — never Padding(padding: EdgeInsets.all(16)) with magic numbers.
    • Radius/Elevation/Shape: ThemeExtension or constants; M3 shape scale (xs/sm/md/lg/xl). BorderRadius.circular(AppRadius.medium).
    • Motion: duration tokens (durationsShort=150ms, medium=300ms, long=450ms) + easing (Curves.easeOutCubic for entries, easeInCubic for exits).
  4. [REQ] Figma-to-Flutter workflow: inspect Figma -> map to M3 tokens (NOT pixel copy) -> build widget tree with const + Theme.of -> verify on device at 1x/2x/3x + light/dark + RTL. Use flutter_preview / DevicePreview package during dev to test multiple screens. Auto-generate tokens from Figma via figma_to_flutter or hand-map to ThemeExtension.
  5. [REQ] Widget composition: extract reusable UI to StatelessWidget classes (NOT methods — methods break const + rebuild scoping). Keep build() < 30 lines. Compose with Column/Row/Stack/Wrap/CustomMultiChildLayout. Use Expanded/Flexible for flex children; SizedBox for fixed gaps (never Container(height:) for spacing).
  6. [REQ] Responsive & adaptive:
    • Breakpoints: compact < 600 dp (phone), medium 600-840 (tablet/fold), expanded 840-1200 (desktop), large > 1200. Use LayoutBuilder + MediaQuery.sizeOf.
    • Adaptive components: Platform.isIOS ? CupertinoX : MaterialX for native feel; NavigationRail/NavigationBar switch at medium breakpoint; SliverAppBar for collapsing headers.
    • Safe areas: SafeArea + MediaQuery.padding/viewInsets for notches/keyboards. Never hardcode status-bar padding.
    • Foldables: DisplayFeatureSubScreen + MediaQuery.displayFeatures for hinge-aware layouts.
  7. [REQ] Lists & scrolling: ListView.builder/SliverList.builder for dynamic; itemExtent/prototypeItem when uniform; CustomScrollView + slivers (SliverAppBar, SliverGrid, SliverToBoxAdapter, SliverPersistentHeader) for complex scroll effects; RefreshIndicator/CupertinoSliverRefreshControl for pull-to-refresh; ScrollController for programmatic scroll (dispose it).
  8. [REQ] Motion design:
    • Implicit: AnimatedContainer, AnimatedOpacity, AnimatedSwitcher, AnimatedPositioned, AnimatedPadding, TweenAnimationBuilder — for state-driven transitions.
    • Explicit: AnimationController + CurvedAnimation + Tween + AnimatedBuilder/FadeTransition — for sequenced/staggered; always vsync: this (TickerProviderStateMixin) + dispose().
    • Shared element: Hero(tag: uniqueStableTag, child:) across routes; avoid Hero on list items with dynamic indices.
    • Designer-authored: Rive (state machines, interactive) for complex; Lottie for one-shot animations. Preload assets.
    • Page transitions: PageTransitionsTheme in ThemeData or go_router CustomTransitionPage.
  9. [REQ] Forms & input UX: Form + GlobalKey<FormState>; TextFormField with validators; InputDecoration from Theme.inputDecorationTheme; focus traversal via FocusNode/FocusTraversalGroup; TextEditingController (dispose); keyboard types (keyboardType, textInputAction); MediaQuery.viewInsets to avoid keyboard overlap; inline validation feedback + submit-time validate().
  10. [REQ] Accessibility (WCAG AA minimum):
  • Semantics(label:, button:, enabled:) on custom gesture widgets (GestureDetector, InkWell custom).
  • MediaQuery.textScaler — never fixed fontSize; use Theme.textTheme which scales. Test at 200% text scale.
  • Tap targets >= 48x48 dp (M3) / 44x44 (iOS).
  • Contrast: ColorScheme.fromSeed enforces M3 contrast; verify with flutter accessibility scanner / kColorScheme.
  • Screen readers: test TalkBack (Android) + VoiceOver (iOS) on every screen. MergeSemantics/ExcludeSemantics for grouped/overridden.
  • SemanticsService.announce for dynamic state changes (e.g., "Item added to cart").
  1. [REQ] Theming structure: MaterialApp.router (with go_router) or MaterialApp; theme: (light), darkTheme: (dark), themeMode: ThemeMode.system; localizationsDelegates: + supportedLocales:. Per-screen theme override via Theme(data: Theme.of(context).copyWith(...), child:) (sparingly).
  2. [REQ] Dark mode: design both palettes from the start — ColorScheme.fromSeed(brightness: Brightness.dark/light). Test images/logos in dark mode (use Theme.brightness to swap assets). Avoid hardcoded white backgrounds.
  3. [REQ] RTL/L10n: Directionality(textDirection: TextDirection.rtl) for Arabic/Hebrew testing; flutter_localizations + ARB; TextDirection-aware layouts (use start/end not left/right: EdgeInsetsDirectional, Align(alignment: AlignmentDirectional.centerStart)). Mirror icons that imply direction.
  4. [REQ] Icons & assets: Icon from Icons (Material) / CupertinoIcons; custom SVG via flutter_svg; raster assets in assets/images/ with 1x/2x/3x variants; pubspec.yaml assets: declaration; cached_network_image for remote (with placeholder + error widget).
  5. [REQ] Empty/loading/error states: every async view handles ConnectionState.waiting (skeleton/shimmer), error (retry CTA + message), empty (illustration + CTA), data (content). Never show a blank screen. Use flutter_animate or hand-rolled shimmer.
  6. [REQ] Design QA before done: screenshot light+dark on phone (375x812), tablet (768x1024), desktop (1280x800); verify pixel spacing against tokens; run flutter analyze; widget-test key components; accessibility audit (TalkBack/VoiceOver + text-scale 200%).

Read the full file on GitHub · 59 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. 12d ago First seen · 59 lines · 44 tokens per session scan A 21c2cb8dddfc

Subscribe to this mod's changes

flutter-design is a skill published in the GitHub repository m3taz-ahmed/ai-globals (5 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 2,111 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

expo-design-system

Framework (OSS). 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…

expo/skills · 201 tokens

flutter-build-responsive-layout

Use LayoutBuilder, MediaQuery, or Expanded/Flexible to create a layout that adapts to different screen sizes. Use when you need the UI to look good on both mobile and tablet/desktop form factors.

flutter/agent-plugins · 51 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

omh-apple-design

This is a Hermes-native apple-design workflow skill.

rlaope/oh-my-hermes · 73 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