Agent skill

Flutter Build Responsive Layout Skill

The flutter-build-responsive-layout skill from the Flutter agent-plugins repo teaches an AI coding agent to build Flutter layouts that adapt to window size instead of device type.

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-build-responsive-layout skill?

Flutter-build-responsive-layout is a skill in the flutter/agent-plugins repository. It guides an AI coding agent to size Flutter interfaces from the available window with MediaQuery.sizeOf and LayoutBuilder, constrain wide content, use builder lists and grids, and support mouse, trackpad and keyboard input.

It is a skill in the flutter/agent-plugins repository. Its job is narrow: when an AI coding agent writes or changes a Flutter screen, the layout should respond to the space the app actually has, whether that is a phone, a resized desktop window or a tablet.

What changes in your agent's output

  • Size decisions come from MediaQuery.sizeOf and LayoutBuilder, with a worked breakpoint example at 600.
  • Rows and columns use Expanded and Flexible so children share space instead of overflowing.
  • Wide content is capped with ConstrainedBox and a maxWidth.
  • Long collections use ListView.builder and GridView.builder, and grids use SliverGridDelegateWithMaxCrossAxisExtent.
  • Mouse, trackpad and keyboard input are supported next to touch.

What it tells the agent not to do

  • Do not place OrientationBuilder at the top of the widget tree to switch layouts.
  • Do not check for a hardware device type to choose a layout.
  • Do not lock the screen orientation. If it must be locked, the skill points to the Display API.

Who the skill is for

Best for

  • Flutter apps that ship to phones, tablets, desktop and web from one codebase.
  • Teams whose agent keeps hard-coding widths or branching on device type.
  • Projects that want one breakpoint approach across every screen.

Not for