)]}'
{
  "commit": "411566a2e2ba6c828122a720bc5ecedeabcd7dc0",
  "tree": "615da74140435f87c789c4914339a936fc19178d",
  "parents": [
    "767fac1b8de8ff25cc3b463f9799d94e1dd94a16"
  ],
  "author": {
    "name": "Bruno Leroux",
    "email": "bruno.leroux@gmail.com",
    "time": "Thu Nov 06 22:45:20 2025 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Nov 06 21:45:20 2025 +0000"
  },
  "message": "Allow label to be used to compute InputDecorator Intrinsic width (#178101)\n\n## Description\n\nThis PR adds `InputDecorator.maintainLabelSize` (similar to\n`InputDecorator.maintainHintSize`) to allow the label to be used in the\nintrinsic width calculation (if could be used for the intrinsic height\ncalculation later if needed).\n\nI opted for this flag (and defaulting to false) because changing the\ndefault calculation would probably break various usages.\nSee\nhttps://github.com/flutter/flutter/issues/178099#issuecomment-3496116095\nfor why this change will be helpful to simplify and fix DropdownMenu\nimplementation.\n\n\n## Before\n\nThe label might be cut off:\n\n\u003cimg width\u003d\"126\" height\u003d\"71\" alt\u003d\"Screenshot 2025-11-05 at 20 16 43\"\nsrc\u003d\"https://github.com/user-attachments/assets/61d9f817-5c58-43f9-9307-976f9c124ec7\"\n/\u003e\n\n## After\n\nThe label is entirely visible because it is part of the intrinsic width\ncalculation:\n\n\u003cimg width\u003d\"126\" height\u003d\"71\" alt\u003d\"Screenshot 2025-11-05 at 20 16 09\"\nsrc\u003d\"https://github.com/user-attachments/assets/47360e17-3cde-4f05-8a6b-cc9e86644ffc\"\n/\u003e\n\n\n## Related Issue\n\nFixes [DropdownMenu menu panel does not close when pressing ESC and\nrequestFocusOnTap is\nfalse](https://github.com/flutter/flutter/issues/177993)\nPart of https://github.com/flutter/flutter/issues/123797\n \n## Tests\n\n- Adds 4 tests.\n- Updates 1 non-related test where I spotted some nits.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c3bd474f3adaea558df3662df045854409b28b46",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/src/material/input_decorator.dart",
      "new_id": "3a524ea394d32945928ca6fcd24076f10702982c",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/src/material/input_decorator.dart"
    },
    {
      "type": "modify",
      "old_id": "deac899a2f726eddad499acf2351ee1a2766eb65",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/material/input_decorator_test.dart",
      "new_id": "0e892676211d9c5086b4868dbb94da0d5d11ac88",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/material/input_decorator_test.dart"
    }
  ]
}
