flutter-building-layouts

Create Flutter app layouts using constraints and layout widgets.

2.8k|166|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/flutter/skills --skill flutter-building-layouts-flutter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-building-layouts
Source: https://github.com/flutter/skills/tree/main/skills/flutter-building-layouts
Command: npx skills add https://github.com/flutter/skills --skill flutter-building-layouts-flutter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers understand and implement Flutter's layout system, enabling them to build responsive and adaptive user interfaces that adapt to different screen sizes and orientations.

Core Features & Use Cases

  • Constraint System Mastery: Learn the fundamental rule: Constraints go down, sizes go up, parent sets position.
  • Widget Selection: Choose the right structural widgets like Row, Column, Stack, Expanded, and Flexible for efficient UI construction.
  • Responsive Design: Implement adaptive layouts using LayoutBuilder for varying screen sizes.
  • Use Case: You need to create a mobile app screen that displays a header, a scrollable list of items, and a footer, ensuring it looks good on both small phones and larger tablets.

Quick Start

Use the flutter-building-layouts skill to create a responsive layout for a Flutter app that adapts to different screen sizes.

Frequently Asked Questions about flutter-building-layouts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build responsive layouts in Flutter that adapt to different screen sizes?

Build responsive layouts in Flutter by using LayoutBuilder to conditionally render UI based on available space. This skill helps you implement adaptive interfaces for varying screen dimensions, ensuring your app looks correct on both small phones and larger tablets.

How does the Flutter constraint system work for parent-child widget interactions?

The Flutter constraint system operates on a fundamental rule: constraints go down, sizes go up, and parents set positions. This skill explains constraint propagation, enabling you to build structured UIs by understanding how parent widgets pass constraints to children.

What is the best way to choose Flutter widgets for building a structured UI?

Choose the best Flutter widgets for structured UIs by selecting appropriate structural components like Row, Column, Stack, Expanded, and Flexible. This skill guides you in picking the right widgets for efficient layout construction and managing parent-child interactions.

Can I create a mobile app screen with a header, scrollable list, and footer that adapts to tablets?

You can create adaptive mobile app screens with headers, scrollable lists, and footers using Flutter's layout widgets and LayoutBuilder. This skill enables you to build these structured interfaces so they render correctly across small phones and larger tablets.

Why does my Flutter UI overflow when sizing child widgets inside a Row or Column?

Flutter UI overflows when child widgets exceed the constraints passed down by parent Row or Column widgets. This skill helps you resolve sizing issues by mastering constraint propagation and using widgets like Expanded and Flexible to manage available space.

Do I need any specific dependencies to implement adaptive UI rendering in Flutter?

You do not need any specific external dependencies to implement adaptive UI rendering in Flutter. This skill uses built-in framework capabilities like LayoutBuilder and core layout widgets to handle conditional rendering based on available space.