What problem does it solve?
Flutter screens often break with RenderFlex overflow errors or rigid layouts that fail on different screen sizes, text scaling, or localized content. This Skill guides the agent to compose layouts from Flutter's constraint system using flex widgets first, avoiding hardcoded dimensions and coordinate-based positioning.
Core Features & Use Cases
- Flex-first layout composition: Start vertical groups with Column and horizontal groups with Row, then distribute space with Expanded, Flexible, Spacer, and flex ratios.
- Constraint safety rules: Prevent common errors like non-zero flex on unbounded axes, misplaced Expanded widgets, and overflow in scrollables.
- Rigid layout avoidance: Replace hardcoded Positioned coordinates, fixed SizedBox dimensions, and mockup-copied screen sizes with adaptive patterns like LayoutBuilder, Wrap, and SafeArea.
- Use Case: When asked to build a profile screen, the agent decomposes the mockup into nested Row and Column widgets, wraps variable-width text in Flexible, and verifies the layout at narrow and wide viewport sizes.
Quick Start
Use the flutter-use-column-row-first skill to build this Flutter screen responsively with Row and Column layouts.