flutter avatar

Flutter Build Responsive Layout

This walks you through building Flutter layouts that actually adapt to screen size instead of just assuming everyone's on a phone. The key insight here is solid: use LayoutBuilder with constraints.maxWidth to make layout decisions, not MediaQuery orientation checks or device type sniffing. It covers the practical stuff like wrapping lists in ConstrainedBox so they don't stretch absurdly wide on desktop, and switching between Row and Column layouts at breakpoints. The repeated warnings about not locking screen orientation are worth heeding, especially the note about foldables ending up letterboxed. Good for anyone moving a mobile-first Flutter app to tablets or web.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
47
skills.sh installs
23.2K
GitHub stars
2.6K
last updated
Jul 14, 2026

Install

$ npx -y skills add flutter/skills --skill flutter-build-responsive-layout --agent claude-code

Installs into .claude/skills of the current project.

Files

Implementing Adaptive Layouts

Contents

Space Measurement Guidelines

Determine the available space accurately to ensure layouts adapt to the app window, not just the physical device.

Sponsors

Details

Repository
github.com/flutter/skills
Categories
Frontend Development, DevOps & CI/CD, Mobile Development
First seen
May 16, 2026

More from flutter/skills

All 56
1analogjs avatarangular-ssranalogjs/angular-skillsImplement server-side rendering and hydration in Angular v20+ using @angular/ssr. Use for SSR setup, hydration strategies, prerendering static pages, and handli3.9Kskills.sh installs
2dimillian avatarreact-component-performancedimillian/skillsAnalyze and optimize React component performance issues (slow renders, re-render thrash, laggy lists, expensive computations). Use when asked to profile or impr1.1Kskills.sh installs
3mattbx avatarshadcn-component-discoverymattbx/shadcn-skillsDiscover shadcn-compatible components and registries across the entire ecosystem before writing any custom UI. Use PROACTIVELY before building tables, forms, mo761skills.sh installs
4sickn33 avatarangular-ui-patternssickn33/antigravity-awesome-skillsangular ui patterns596skills.sh installs
5davila7 avatarreact-ui-patternsdavila7/claude-code-templatesModern React UI patterns for loading states, error handling, and data fetching. Use when building UI components, handling async data, or managing UI states.529skills.sh installs
6sergiodxa avatarfrontend-react-router-best-practicessergiodxa/agent-skillsReact Router performance and architecture patterns. Use when writing loaders, actions, forms, routes, or working with React Router data fetching. Triggers on ta402skills.sh installs