
Flutter Adaptive Ui
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.
- skills.sh installs
- 2K
- GitHub stars
- 112
- last updated
- Aug 21, 2026
Install
$ npx -y skills add madteacher/mad-agents-skills --skill flutter-adaptive-ui --agent claude-codeInstalls 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
Sponsors