flutter avatar

Flutter Fix Layout Issues

Flutter layout errors are the kind of thing you can spend twenty minutes on because the stack trace points at the wrong widget. This skill goes straight at the three common culprits: a ListView dropped into an unbounded Column, a TextField inside a Row without Expanded, and a Row or Column child that overflows the screen. It maps each error string to the fix that usually works, like wrapping in Expanded, Flexible, or a SizedBox, and it tells the agent to ignore the cascading "RenderBox was not laid out" noise and look further up the trace. The before-and-after examples are short and correct. My honest take: the fixes are the standard ones any Flutter developer knows, so the value is mostly in not having to remember them mid-debug. It doesn't handle deeper constraint problems inside custom render objects, so treat it as a fast path for the everyday cases.

skills.sh installs
42.2K
GitHub stars
3.2K
last updated
Oct 26, 2026

Install

$ npx -y skills add flutter/agent-plugins --skill flutter-fix-layout-issues --agent claude-code

Installs into .claude/skills of the current project.

Files

Resolving Flutter Layout Errors

Contents

Constraint Violation Diagnostics

Flutter layout operates on a strict rule: Constraints go down. Sizes go up. Parent sets position. Layout errors occur when this negotiation fails, typically due to unbounded constraints or unconstrained children.

Diagnose layout failures using the following error signatures:

Sponsors

Details

Repository
github.com/flutter/agent-plugins
Categories
Frontend Development, AI & Agent Building, Debugging, Mobile Development
First seen
Oct 26, 2026

More from flutter/agent-plugins

All 10
1jimliu avatarbaoyu-markdown-to-htmljimliu/baoyu-skillsConverts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, Mermaid (rendered to PNG via headless Chrome), PlantUML, footn32.7Kskills.sh installs
2ibelick avatarfixing-motion-performanceibelick/ui-skillsAudit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutte28.6Kskills.sh installs
3flutter avatarflutter-fix-layout-issuesflutter/skillsflutter fix layout issues22.3Kskills.sh installs
4lewislulu avatarhtml-pptlewislulu/html-ppt-skillHTML PPT Studio — author professional static HTML presentations in many styles, layouts, and animations, all driven by templates. Use when the user asks for a p21.4Kskills.sh installs
5dontbesilent2025 avatardbs-wechat-htmldontbesilent2025/dbskill把 Markdown 转成可粘贴到微信公众号后台的 HTML,并提供 15 种内置风格。用户要求生成公众号 HTML、制作微信版本或排版公众号文章时使用。19.6Kskills.sh installs
6wshobson avatarreact-native-designwshobson/agentsMaster React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navi16.1Kskills.sh installs