Adaptive Flutter layouts that respond to screen size, platform, and input device across mobile, tablet, desktop, and web.
Works with
Three-step workflow: abstract common widgets, measure available space with MediaQuery or LayoutBuilder, and branch UI based on width breakpoints (compact <600, medium 600–840, expanded ≥840)
Covers layout fundamentals including Flutter's constraint system, common patterns (Row, Column, Expanded, Container), and responsive grid/navigation examples
Best practic
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionflutter-adaptive-uiExecute the skills CLI command in your project's root directory to begin installation:
Fetches flutter-adaptive-ui from madteacher/mad-agents-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate flutter-adaptive-ui. Access via /flutter-adaptive-ui in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
1
total installs
1
this week
91
GitHub stars
0
upvotes
Run in your terminal
1
installs
1
this week
91
stars
Create Flutter applications that adapt gracefully to any screen size, platform, or input device. This skill provides comprehensive guidance for building responsive layouts that scale from mobile phones to large desktop displays while maintaining excellent user experience across touch, mouse, and keyboard interactions.
Core Layout Rule: Constraints go down. Sizes go up. Parent sets position.
3-Step Adaptive Approach:
Key Breakpoints:
Follow the 3-step approach to make your app adaptive.
Identify widgets that need adaptability and extract common data. Common patterns:
For navigation, create a shared Destination class with icon and label used by both NavigationBar and NavigationRail.
Choose the right measurement tool:
MediaQuery.sizeOf(context) - Use when you need app window size for top-level layout decisions
MediaQuery.of() for size queriesLayoutBuilder - Use when you need constraints for specific widget subtree
BoxConstraintsExample:
// For app-level decisions
final width = MediaQuery.sizeOf(context).width;
// For widget-specific constraints
LayoutBuilder(
builder: (context, constraints) {
if (constraints.maxWidth < 600) {
return MobileLayout();
}
return DesktopLayout();
},
)
Apply breakpoints to select appropriate UI. Don't base decisions on device type - use window size instead.
Example breakpoints (from Material guidelines):
class AdaptiveLayout extends StatelessWidget {
Widget build(BuildContext context) {
final width = MediaQuery.sizeOf(context).width;
if (width >= 840) {
return DesktopLayout();
} else if (width >= 600) {
return TabletLayout();
}
return MobileLayout();
}
}
Flutter layout follows one rule: Constraints go down. Sizes go up. Parent sets position.
Widgets receive constraints from parents, determine their size, then report size up to parent. Parents then position children.
Key limitation: Widgets can only decide size within parent constraints. They cannot know or control their own position.
For detailed examples and edge cases, see layout-constraints.md.
Row/Column
Row arranges children horizontallyColumn arranges children verticallymainAxisAlignment and crossAxisAlignmentExpanded to make children fill available space proportionallyContainer
Expanded/Flexible
Expanded forces child to use available spaceFlexible allows child to use available space but can be smallerflex parameter to control proportionsFor complete widget documentation, see layout-basics.md and layout-common-widgets.md.
Break down widgets
const widgetsDesign to platform strengths
Solve touch first
Never lock orientation
Avoid device type checks
Platform.isIOS, Platform.isAndroid for layout decisionsUse breakpoints, not orientation
OrientationBuilder for layout changesMediaQuery.sizeOf or LayoutBuilder with breakpointsDon't fill entire width
GridView or flex patternsSupport multiple inputs
For complete best practices, see adaptive-best-practices.md.
Separate what your code can do from what it should do.
Capabilities (what code can do)
Policies (what code should do)
// Capability class
class Capability {
bool hasCamera() {
// Check if camera API is available
return Platform.isAndroid || Platform.isIOS;
}
}
// Policy class
class Policy {
bool shouldShowCameraFeature() {
// Business logic - maybe disabled by store policy
return hasCamera() && !Platform.isIOS;
}
}
Benefits:
For detailed examples, see adaptive-capabilities.md and capability_policy_example.dart.
Switch between bottom navigation (small screens) and navigation rail (large screens):
Widget build(BuildContext context) {
final width = MediaQuery.sizeOf(context).width;
return width >= 600
? _buildNavigationRailLayout()
: _buildBottomNavLayout();
}
Complete example: responsive_navigation.dart
Use GridView.extent with responsive maximum width:
LayoutBuilder(
builder: (context, constraints) {
return GridView.extent(
maxCrossAxisExtent: constraints.maxWidth < 600 ? 150 : 200,
// ...
);
},
)
This skill currently has no executable scripts. All guidance is in reference documentation.
This skill includes complete Dart example files demonstrating:
These assets can be copied directly into your Flutter project or adapted to your needs.
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
ajianaz/skills-collection
anthropics/claude-code
mblode/agent-skills
github/awesome-copilot
sickn33/antigravity-awesome-skills
leonxlnx/taste-skill
flutter-adaptive-ui fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
flutter-adaptive-ui is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Registry listing for flutter-adaptive-ui matched our evaluation — installs cleanly and behaves as described in the markdown.
flutter-adaptive-ui reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: flutter-adaptive-ui is the kind of skill you can hand to a new teammate without a long onboarding doc.
flutter-adaptive-ui is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
flutter-adaptive-ui fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added flutter-adaptive-ui from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
I recommend flutter-adaptive-ui for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Solid pick for teams standardizing on skills: flutter-adaptive-ui is focused, and the summary matches what you get after install.
showing 1-10 of 29