Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/Frontend Development
madteacher avatar

Flutter Adaptive Ui

madteacher/mad-agents-skills

Teaches Claude to build Flutter UIs that adapt to screen size using constraints, not platform checks. You get breakpoint-driven layouts (compact under 600dp, medium to 840, expanded beyond), responsive navigation that switches between bars and rails, and a Capability/Policy pattern for platform behavior. The workflow is measure-then-branch: use MediaQuery for window decisions, LayoutBuilder for widget-level constraints, and never let content stretch unreadably wide on desktop. Includes starter code for adaptive navigation and concrete rules like "constraints down, sizes up, parent sets position." Solid if you're tired of hardcoding Platform.isIOS or breaking layouts when users resize windows.

installs
2K
GitHub stars
110
last updated
Aug 21, 2026
View on GitHubSave

Install

$ npx -y skills add madteacher/mad-agents-skills --skill flutter-adaptive-ui --agent claude-code

Installs into .claude/skills of the current project.

Files

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

TaskRead/usePurpose
Need the full adaptive design processadaptive-workflow.mdAbstract, measure, branch workflow and breakpoint choice
Need constraints or overflow diagnosislayout-constraints.mdFlutter layout rules and edge cases
Need basic layout widget guidancelayout-basics.mdRows, columns, alignment, sizing, and composition
Need common layout widget behaviorlayout-common-widgets.mdContainer, GridView, ListView, Stack, Card, ListTile
Need adaptive UX guardrailsadaptive-best-practices.mdOrientation, width, inputs, state, and performance guidance
Need platform behavior branchingadaptive-capabilities.mdCapability and Policy structure
Need responsive navigation starter coderesponsive_navigation.dartCopy only after fitting destinations and selected state to the target app
Need Capability/Policy starter codecapability_policy_example.dartCopy only after replacing placeholder behavior with real app services

Do not read every reference by default. Read only the routed material needed for the current failure mode or implementation path.

Implementation Rules

  • Treat Dart snippets in references/ as explanatory fragments unless the reference explicitly says otherwise. Use assets/ for starter code.
  • Do not use Platform.isIOS, Platform.isAndroid, device names, or OrientationBuilder for layout decisions. Use available width/constraints instead.
  • Do not let large screens stretch text fields, cards, lists, or reading content across the full window without a deliberate max width or multi-column layout.
  • Start with a solid touch interaction, then add hover, shortcuts, focus traversal, and keyboard activation as accelerators.
  • Use GridView.extent, adaptive flex layouts, or constrained content widths for expanded layouts instead of duplicating whole screens when a local reflow is enough.
  • Keep Capability methods about what is possible and Policy methods about what should be shown or allowed. Name methods by the decision, not by the platform.
  • Treat bundled assets as starter examples. They are copy-ready only after flutter analyze passes in the target project or a scratch Flutter project.

Validation

After changing a Flutter project:

  1. Run flutter analyze.
  2. Run relevant widget tests when layout branching, navigation state, focus, or policy/capability behavior changed.
  3. Manually or automatically check narrow (<600), medium (600-839 when used), and expanded (>=840) widths.
  4. Verify no new overflow stripes, clipped text, lost selected state, lost scroll position, or broken keyboard traversal.
  5. If validation cannot run, report the blocker and the risk. Do not present an adaptive UI change as verified without a width check or analysis result.

Fallback

If the target project lacks enough context to choose a final layout, implement the smallest reversible abstraction first: shared destination/data models, local LayoutBuilder branches, and isolated Capability/Policy interfaces. Ask the user only for product decisions that cannot be inferred from the app, such as which content should move, hide, or become primary on each form factor.

SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/madteacher/mad-agents-skills
Categories
Frontend Development, DevOps & CI/CD, Git & Pull Requests, Code Review & Quality, Debugging, Mobile Development

More from madteacher/mad-agents-skills

All 11
  • Flutter Architecture1.7K
  • Flutter Testing1.5K
  • Flutter Networking723
  • Flutter Drift672
  • Flutter Navigation590
  • Flutter Internationalization537
  • Dart Drift467
  • Agents Md Generator379
  • Flutter Duit Bdui344
  • Flutter Animations15.4K

Recommended

More Frontend Development
1metabase avataranalytics-eventsmetabase/metabaseAdd product analytics events to track user interactions in the Metabase frontend2Kinstalls
2iamzifei avatarxiaohongshu-imagesiamzifei/xiaohongshu-images-skillTransform markdown/HTML into styled 3:4 ratio images for Xiaohongshu 新手引导:输入 `/小红书配图 新手`、「这个怎么用」「第一次用」「能干嘛」时,走 SKILL.md 的〈新手上路〉,不要直接开始干活。2Kinstalls
3cognitedata avatarcode-qualitycognitedata/builder-skillsMUST be used whenever reviewing a Flows app for code quality, maintainability, or clean code issues — before a PR review, after a feature is complete, or when t2Kinstalls
4enzed avatarr3f-postprocessingenzed/r3f-skillsReact Three Fiber post-processing - @react-three/postprocessing, bloom, DOF, screen effects. Use when adding visual effects, color grading, blur, glow, or creat2Kinstalls
5enzed avatarr3f-materialsenzed/r3f-skillsReact Three Fiber materials - PBR materials, Drei materials, shader materials, material properties. Use when styling meshes, creating custom materials, working 2Kinstalls
6enzed avatarr3f-geometryenzed/r3f-skillsReact Three Fiber geometry - built-in shapes, BufferGeometry, instancing with Drei. Use when creating 3D shapes, custom meshes, point clouds, lines, or optimizi2Kinstalls