{
  "id": "flutter/text-overflow-ellipsis-conflict",
  "signature": "FlutterError: Text overflow with ellipsis and maxLines conflict",
  "signature_zh": "Flutter错误：文本溢出与省略号和maxLines冲突",
  "regex": "FlutterError.*Text overflow.*ellipsis.*maxLines",
  "domain": "flutter",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "Setting both overflow: TextOverflow.ellipsis and maxLines on a Text widget while the parent constraints are too tight, causing the text to be clipped unexpectedly instead of showing ellipsis.",
  "root_cause_type": "generic",
  "root_cause_zh": "在Text小部件上同时设置overflow: TextOverflow.ellipsis和maxLines，但父级约束过于严格，导致文本被意外裁剪而非显示省略号。",
  "versions": [
    {
      "version": "Flutter 3.13",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Flutter 3.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Without maxLines, the text may expand infinitely, causing overflow errors in the parent widget.",
      "fail_rate": 0.55,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "softWrap: false disables line breaking entirely, leading to RenderFlex overflow warnings.",
      "fail_rate": 0.45,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "FittedBox scales the entire text widget, potentially making it unreadable at small sizes.",
      "fail_rate": 0.35,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use a Flexible or Expanded parent widget to give the Text widget adequate width for ellipsis to work.",
      "success_rate": 0.85,
      "how": "Use a Flexible or Expanded parent widget to give the Text widget adequate width for ellipsis to work.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set textWidthBasis: TextWidthBasis.longestLine on the Text widget to improve ellipsis calculation.",
      "success_rate": 0.7,
      "how": "Set textWidthBasis: TextWidthBasis.longestLine on the Text widget to improve ellipsis calculation.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use a Flexible or Expanded parent widget to give the Text widget adequate width for ellipsis to work.",
    "Set textWidthBasis: TextWidthBasis.longestLine on the Text widget to improve ellipsis calculation."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://api.flutter.dev/flutter/widgets/Text-class.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2023-06-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}