flutter-adaptive-ui
SKILL.md
Flutter Adaptive UI
Overview
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.
Quick Reference
Core Layout Rule: Constraints go down. Sizes go up. Parent sets position.
3-Step Adaptive Approach:
- Abstract - Extract common data from widgets
- Measure - Determine available space (MediaQuery/LayoutBuilder)
- Branch - Select appropriate UI based on breakpoints
Key Breakpoints:
- Compact (Mobile): width < 600
- Medium (Tablet): 600 <= width < 840
- Expanded (Desktop): width >= 840