{
  "id": "flutter/renderflex-vertical-viewport",
  "signature": "RenderFlex children have non-zero flex but incoming height constraints are unbounded",
  "signature_zh": "RenderFlex 子项具有非零弹性，但传入的高度约束是无界的",
  "regex": "RenderFlex children have non-zero flex but incoming height constraints are unbounded",
  "domain": "flutter",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A Column or Flex widget with Expanded children is placed inside a scrollable view (e.g., ListView, SingleChildScrollView) that does not provide a bounded height constraint.",
  "root_cause_type": "generic",
  "root_cause_zh": "带有 Expanded 子项的 Column 或 Flex 小部件被放置在未提供有界高度约束的可滚动视图（例如 ListView、SingleChildScrollView）内。",
  "versions": [
    {
      "version": "Flutter 3.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Wrap the Column in a SizedBox with a fixed height",
      "why_fails": "A fixed height may not adapt to different screen sizes and can cause overflow on smaller devices.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Replace Expanded with Flexible without flex value",
      "why_fails": "Flexible still requires a bounded constraint; the error persists if the parent is unbounded.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Wrap the Column inside an IntrinsicHeight widget to provide a bounded constraint. Example: IntrinsicHeight(child: Column(children: [Expanded(child: ...), ...]));",
      "success_rate": 0.85,
      "how": "Wrap the Column inside an IntrinsicHeight widget to provide a bounded constraint. Example: IntrinsicHeight(child: Column(children: [Expanded(child: ...), ...]));",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a ShrinkWrappingViewport or set the ListView's shrinkWrap: true and neverScrollableScrollPhysics: true to allow the Column to calculate its own height.",
      "success_rate": 0.9,
      "how": "Use a ShrinkWrappingViewport or set the ListView's shrinkWrap: true and neverScrollableScrollPhysics: true to allow the Column to calculate its own height.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Replace the scrollable parent with a NonScrollableColumn or use a CustomScrollView with slivers that provide bounded constraints.",
      "success_rate": 0.8,
      "how": "Replace the scrollable parent with a NonScrollableColumn or use a CustomScrollView with slivers that provide bounded constraints.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Wrap the Column inside an IntrinsicHeight widget to provide a bounded constraint. Example: IntrinsicHeight(child: Column(children: [Expanded(child: ...), ...]));",
    "Use a ShrinkWrappingViewport or set the ListView's shrinkWrap: true and neverScrollableScrollPhysics: true to allow the Column to calculate its own height.",
    "Replace the scrollable parent with a NonScrollableColumn or use a CustomScrollView with slivers that provide bounded constraints."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://api.flutter.dev/flutter/rendering/RenderFlex-class.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-06-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}