skills/modelscope.cn/flutter-adaptive-ui

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:

  1. Abstract - Extract common data from widgets
  2. Measure - Determine available space (MediaQuery/LayoutBuilder)
  3. Branch - Select appropriate UI based on breakpoints

Key Breakpoints:

  • Compact (Mobile): width < 600
  • Medium (Tablet): 600 <= width < 840
  • Expanded (Desktop): width >= 840
Installs
1
First Seen
Apr 20, 2026