[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BVA0368A3GW4YYJCVERJ77":3,"skill-same:01M7BVA0368A3GW4YYJCVERJ77":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7BVA0368A3GW4YYJCVERJ77","flutter-fix-layout-issues",null,"Fixes Flutter layout errors (overflows, unbounded constraints) using Dart and Flutter MCP tools. Use when addressing \"RenderFlex overflowed\", \"Vertical viewport was given unbounded height\", or similar layout issues.","nguyenhungtran18\u002Fskill-and-tool-tracker","nguyenhungtran18","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F297063550?v=4","01M7BV0BFPRRFP84F2ME0FYZ9D","01M7BV0BG83FA5P22NJV0GR0A5",1,"MIT","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fflutter-fix-layout-issues\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: flutter-fix-layout-issues\ndescription: Fixes Flutter layout errors (overflows, unbounded constraints) using Dart and Flutter MCP tools. Use when addressing \"RenderFlex overflowed\", \"Vertical viewport was given unbounded height\", or similar layout issues.\nmetadata:\n  model: models\u002Fgemini-3.1-pro-preview\n  last_modified: Tue, 21 Apr 2026 19:45:59 GMT\n---\n# Resolving Flutter Layout Errors\n\n## Contents\n- [Constraint Violation Diagnostics](#constraint-violation-diagnostics)\n- [Layout Error Resolution Workflow](#layout-error-resolution-workflow)\n- [Examples](#examples)\n\n## Constraint Violation Diagnostics\n\nFlutter 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. \n\nDiagnose layout failures using the following error signatures:\n\n*   **\"Vertical viewport was given unbounded height\"**: Triggered when a scrollable widget (`ListView`, `GridView`) is placed inside an unconstrained vertical parent (`Column`). The parent provides infinite height, and the child attempts to expand infinitely.\n*   **\"An InputDecorator...cannot have an unbounded width\"**: Triggered when a `TextField` or `TextFormField` is placed inside an unconstrained horizontal parent (`Row`). The text field attempts to determine its width based on infinite available space.\n*   **\"RenderFlex overflowed\"**: Triggered when a child of a `Row` or `Column` requests a size larger than the parent's allocated constraints. Visually indicated by yellow and black warning stripes.\n*   **\"Incorrect use of ParentData widget\"**: Triggered when a `ParentDataWidget` is not a direct descendant of its required ancestor. (e.g., `Expanded` outside a `Flex`, `Positioned` outside a `Stack`).\n*   **\"RenderBox was not laid out\"**: A cascading side-effect error. Ignore this and look further up the stack trace for the primary constraint violation (usually an unbounded height\u002Fwidth error).\n\n## Layout Error Resolution Workflow\n\nCopy and use this checklist to systematically resolve layout constraint violations.\n\n### Task Progress\n- [ ] Run the application in debug mode to capture the exact layout exception in the console.\n- [ ] Identify the primary error message (ignore cascading \"RenderBox was not laid out\" errors).\n- [ ] Apply the conditional fix based on the specific error type:\n  - **If \"Vertical viewport was given unbounded height\"**: Wrap the scrollable child (`ListView`, `GridView`) in an `Expanded` widget to consume remaining space, or wrap it in a `SizedBox` to provide an absolute height constraint.\n  - **If \"An InputDecorator...cannot have an unbounded width\"**: Wrap the `TextField` or `TextFormField` in an `Expanded` or `Flexible` widget.\n  - **If \"RenderFlex overflowed\"**: Constrain the overflowing child by wrapping it in an `Expanded` widget (to force it to fit) or a `Flexible` widget (to allow it to be smaller than the allocated space).\n  - **If \"Incorrect use of ParentData widget\"**: Move the `ParentDataWidget` to be a direct child of its required parent. Ensure `Expanded`\u002F`Flexible` are direct children of `Row`\u002F`Column`\u002F`Flex`. Ensure `Positioned` is a direct child of `Stack`.\n- [ ] Execute Flutter hot reload.\n- [ ] Run validator -> review errors -> fix: Inspect the UI to verify the red\u002Fgrey error screen or yellow\u002Fblack overflow stripes are resolved. If new layout errors appear, repeat the workflow.\n\n## Examples\n\n### Fixing Unbounded Height (ListView in Column)\n\n**Input (Error State):**\n```dart\n\u002F\u002F Throws \"Vertical viewport was given unbounded height\"\nColumn(\n  children: \u003CWidget>[\n    const Text('Header'),\n    ListView(\n      children: const \u003CWidget>[\n        ListTile(title: Text('Item 1')),\n        ListTile(title: Text('Item 2')),\n      ],\n    ),\n  ],\n)\n```\n\n**Output (Resolved State):**\n```dart\n\u002F\u002F Wrap ListView in Expanded to constrain its height to the remaining Column space\nColumn(\n  children: \u003CWidget>[\n    const Text('Header'),\n    Expanded(\n      child: ListView(\n        children: const \u003CWidget>[\n          ListTile(title: Text('Item 1')),\n          ListTile(title: Text('Item 2')),\n        ],\n      ),\n    ),\n  ],\n)\n```\n\n### Fixing Unbounded Width (TextField in Row)\n\n**Input (Error State):**\n```dart\n\u002F\u002F Throws \"An InputDecorator...cannot have an unbounded width\"\nRow(\n  children: [\n    const Icon(Icons.search),\n    TextField(), \n  ],\n)\n```\n\n**Output (Resolved State):**\n```dart\n\u002F\u002F Wrap TextField in Expanded to constrain its width to the remaining Row space\nRow(\n  children: [\n    const Icon(Icons.search),\n    Expanded(\n      child: TextField(),\n    ),\n  ],\n)\n```\n\n### Fixing RenderFlex Overflow\n\n**Input (Error State):**\n```dart\n\u002F\u002F Throws \"A RenderFlex overflowed by X pixels on the right\"\nRow(\n  children: [\n    const Icon(Icons.info),\n    const Text('This is a very long text string that will definitely overflow the available screen width and cause a RenderFlex error.'),\n  ],\n)\n```\n\n**Output (Resolved State):**\n```dart\n\u002F\u002F Wrap the Text widget in Expanded to force it to wrap within the available constraints\nRow(\n  children: [\n    const Icon(Icons.info),\n    Expanded(\n      child: const Text('This is a very long text string that will definitely overflow the available screen width and cause a RenderFlex error.'),\n    ),\n  ],\n)\n```\n","# Resolving Flutter Layout Errors\n\n## Contents\n- [Constraint Violation Diagnostics](#constraint-violation-diagnostics)\n- [Layout Error Resolution Workflow](#layout-error-resolution-workflow)\n- [Examples](#examples)\n\n## Constraint Violation Diagnostics\n\nFlutter 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. \n\nDiagnose layout failures using the following error signatures:\n\n*   **\"Vertical viewport was given unbounded height\"**: Triggered when a scrollable widget (`ListView`, `GridView`) is placed inside an unconstrained vertical parent (`Column`). The parent provides infinite height, and the child attempts to expand infinitely.\n*   **\"An InputDecorator...cannot have an unbounded width\"**: Triggered when a `TextField` or `TextFormField` is placed inside an unconstrained horizontal parent (`Row`). The text field attempts to determine its width based on infinite available space.\n*   **\"RenderFlex overflowed\"**: Triggered when a child of a `Row` or `Column` requests a size larger than the parent's allocated constraints. Visually indicated by yellow and black warning stripes.\n*   **\"Incorrect use of ParentData widget\"**: Triggered when a `ParentDataWidget` is not a direct descendant of its required ancestor. (e.g., `Expanded` outside a `Flex`, `Positioned` outside a `Stack`).\n*   **\"RenderBox was not laid out\"**: A cascading side-effect error. Ignore this and look further up the stack trace for the primary constraint violation (usually an unbounded height\u002Fwidth error).\n\n## Layout Error Resolution Workflow\n\nCopy and use this checklist to systematically resolve layout constraint violations.\n\n### Task Progress\n- [ ] Run the application in debug mode to capture the exact layout exception in the console.\n- [ ] Identify the primary error message (ignore cascading \"RenderBox was not laid out\" errors).\n- [ ] Apply the conditional fix based on the specific error type:\n  - **If \"Vertical viewport was given unbounded height\"**: Wrap the scrollable child (`ListView`, `GridView`) in an `Expanded` widget to consume remaining space, or wrap it in a `SizedBox` to provide an absolute height constraint.\n  - **If \"An InputDecorator...cannot have an unbounded width\"**: Wrap the `TextField` or `TextFormField` in an `Expanded` or `Flexible` widget.\n  - **If \"RenderFlex overflowed\"**: Constrain the overflowing child by wrapping it in an `Expanded` widget (to force it to fit) or a `Flexible` widget (to allow it to be smaller than the allocated space).\n  - **If \"Incorrect use of ParentData widget\"**: Move the `ParentDataWidget` to be a direct child of its required parent. Ensure `Expanded`\u002F`Flexible` are direct children of `Row`\u002F`Column`\u002F`Flex`. Ensure `Positioned` is a direct child of `Stack`.\n- [ ] Execute Flutter hot reload.\n- [ ] Run validator -> review errors -> fix: Inspect the UI to verify the red\u002Fgrey error screen or yellow\u002Fblack overflow stripes are resolved. If new layout errors appear, repeat the workflow.\n\n## Examples\n\n### Fixing Unbounded Height (ListView in Column)\n\n**Input (Error State):**\n```dart\n\u002F\u002F Throws \"Vertical viewport was given unbounded height\"\nColumn(\n  children: \u003CWidget>[\n    const Text('Header'),\n    ListView(\n      children: const \u003CWidget>[\n        ListTile(title: Text('Item 1')),\n        ListTile(title: Text('Item 2')),\n      ],\n    ),\n  ],\n)\n```\n\n**Output (Resolved State):**\n```dart\n\u002F\u002F Wrap ListView in Expanded to constrain its height to the remaining Column space\nColumn(\n  children: \u003CWidget>[\n    const Text('Header'),\n    Expanded(\n      child: ListView(\n        children: const \u003CWidget>[\n          ListTile(title: Text('Item 1')),\n          ListTile(title: Text('Item 2')),\n        ],\n      ),\n    ),\n  ],\n)\n```\n\n### Fixing Unbounded Width (TextField in Row)\n\n**Input (Error State):**\n```dart\n\u002F\u002F Throws \"An InputDecorator...cannot have an unbounded width\"\nRow(\n  children: [\n    const Icon(Icons.search),\n    TextField(), \n  ],\n)\n```\n\n**Output (Resolved State):**\n```dart\n\u002F\u002F Wrap TextField in Expanded to constrain its width to the remaining Row space\nRow(\n  children: [\n    const Icon(Icons.search),\n    Expanded(\n      child: TextField(),\n    ),\n  ],\n)\n```\n\n### Fixing RenderFlex Overflow\n\n**Input (Error State):**\n```dart\n\u002F\u002F Throws \"A RenderFlex overflowed by X pixels on the right\"\nRow(\n  children: [\n    const Icon(Icons.info),\n    const Text('This is a very long text string that will definitely overflow the available screen width and cause a RenderFlex error.'),\n  ],\n)\n```\n\n**Output (Resolved State):**\n```dart\n\u002F\u002F Wrap the Text widget in Expanded to force it to wrap within the available constraints\nRow(\n  children: [\n    const Icon(Icons.info),\n    Expanded(\n      child: const Text('This is a very long text string that will definitely overflow the available screen width and cause a RenderFlex error.'),\n    ),\n  ],\n)\n```\n",{"name":5,"metadata":23,"description":7},{"model":24,"last_modified":25},"models\u002Fgemini-3.1-pro-preview","Tue, 21 Apr 2026 19:45:59 GMT","main","900ea3c9eb045fd5b0317dc1103777ecf3ea4aeb","skills\u002Fflutter-fix-layout-issues",0,"https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker","https:\u002F\u002Fnguyenhungtran18.github.io\u002Fskill-and-tool-tracker\u002F","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18","2026-08-31 18:36:09",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add nguyenhungtran18\u002Fskill-and-tool-tracker --skill flutter-fix-layout-issues",{"tool":40,"command":41},"bunx","bunx skills add nguyenhungtran18\u002Fskill-and-tool-tracker --skill flutter-fix-layout-issues",{"tool":43,"command":44},"pnpm","pnpm dlx skills add nguyenhungtran18\u002Fskill-and-tool-tracker --skill flutter-fix-layout-issues","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fflutter-fix-layout-issues\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7BVP4P83TK60JZ4P8RP9VP7","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fxcode_project_setup\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M7BVP01K4CSJJ8G90FT8S2D5","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7BVNY22GXD871GYTSH599F1","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M7BVNQWF24RNKA8A4KM2HJ3T","workflow-skill-creator","Distills a completed user workflow or interaction into a reusable agent skill. Use when the user asks to turn their workflow, interaction, or multi-step process into a skill, or when they say \"make this a skill\", \"create a skill from what we just did\", \"package this workflow\" or similar. Do not use for creating skills from scratch without an existing workflow (use a generic skill-creator for that).","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow_skill_creator\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7BVNNY67XPCQAQHY3FBKDGC","verify-and-stop","Prove existing work meets acceptance conditions without expanding scope. Use for validation-only tasks, completion checks, focused gate runs, and last-mile proof.","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fverify-and-stop\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7BVNKB4Z7SZT85B73ZZ90Y6","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fnguyenhungtran18\u002Fskill-and-tool-tracker\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[]]