Agent skill

Flutter Fix Layout Issues Skill

The flutter-fix-layout-issues skill from the Flutter agent-plugins repo maps common Flutter layout errors to their fixes, so an AI coding agent debugs overflow and unbounded constraints correctly.

Install
git clone https://github.com/flutter/agent-plugins.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the flutter-fix-layout-issues skill?

Flutter-fix-layout-issues is a skill in the flutter/agent-plugins repository. It gives an AI coding agent a map from Flutter layout error messages, such as RenderFlex overflow and unbounded height, to the fix that applies, plus a checklist and a workflow for confirming the fix.

It is a debugging skill in the flutter/agent-plugins repository. Flutter reports layout problems with long, similar-looking messages. The skill gives the AI coding agent a lookup from the message to the likely cause and the fix, so it does not guess.

Errors it maps to fixes

  • Vertical viewport was given unbounded height: wrap the child in Expanded or SizedBox.
  • InputDecorator unbounded width: wrap the field in Expanded or Flexible.
  • RenderFlex overflowed: wrap the overflowing child in Expanded or Flexible.
  • Incorrect use of ParentData widget: fix the parent so the widget sits where it is allowed.
  • RenderBox was not laid out: usually a cascade from an earlier error, so ignore it and fix the first one.

What else is in it

The skill adds a checklist and a workflow that uses Dart examples, and it mentions the Dart and Flutter MCP tools for inspecting the running app.

Who the skill is for

Best for

  • Flutter developers whose agent keeps patching overflow errors in the wrong place.
  • Teams that want the first error in a cascade fixed, not the last.
  • Anyone who pastes layout exceptions into an AI coding agent.

Not for