)]}'
{
  "commit": "f65dd3bac0c44c036fe4b158c5d550c4ec529a60",
  "tree": "819afd2083620b688fe95663dc035e30535d69ae",
  "parents": [
    "fad8bda64a5300d38e3f86e74e3c22360e755381"
  ],
  "author": {
    "name": "Taha Tesser",
    "email": "tessertaha@gmail.com",
    "time": "Thu Oct 12 17:17:56 2023 +0300"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Oct 12 14:17:56 2023 +0000"
  },
  "message": "Fix chip widgets don\u0027t the apply provided `iconTheme` (#135751)\n\nfixes [`Chip.iconTheme` does not apply the icon theme](https://github.com/flutter/flutter/issues/111828)\r\n\r\n### Description\r\n- Fix chip widgets that don\u0027t utilize the provided `iconTheme`.\r\n- Prevent `iconTheme` with just color from overriding the default icon size.\r\n- Add some missing M3 tests for the chip and chip theme properties.\r\n\r\n### Code sample\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eexpand to view the code sample\u003c/summary\u003e \r\n\r\n```dart\r\nimport \u0027package:flutter/material.dart\u0027;\r\n\r\nvoid main() \u003d\u003e runApp(const MyApp());\r\n\r\nclass MyApp extends StatelessWidget {\r\n  const MyApp({super.key});\r\n\r\n  @override\r\n  Widget build(BuildContext context) {\r\n    return MaterialApp(\r\n      debugShowCheckedModeBanner: false,\r\n      theme: ThemeData(useMaterial3: true),\r\n      home: const Example(),\r\n    );\r\n  }\r\n}\r\n\r\nclass Example extends StatefulWidget {\r\n  const Example({super.key});\r\n\r\n  @override\r\n  State\u003cExample\u003e createState() \u003d\u003e _ExampleState();\r\n}\r\n\r\nclass _ExampleState extends State\u003cExample\u003e {\r\n  final bool _isEnable \u003d true;\r\n\r\n  @override\r\n  Widget build(BuildContext context) {\r\n    return Scaffold(\r\n      body: Center(\r\n        child: Column(\r\n          mainAxisAlignment: MainAxisAlignment.spaceEvenly,\r\n          children: \u003cWidget\u003e[\r\n            RawChip(\r\n              iconTheme: const IconThemeData(color: Colors.amber),\r\n              avatar: const Icon(Icons.favorite_rounded),\r\n              label: const Text(\u0027RawChip\u0027),\r\n              onPressed: () {},\r\n              isEnabled: _isEnable,\r\n            ),\r\n            const Chip(\r\n              iconTheme: IconThemeData(color: Colors.amber),\r\n              avatar: Icon(Icons.favorite_rounded),\r\n              label: Text(\u0027Chip\u0027),\r\n              // onDeleted: () {},\r\n            ),\r\n            FilterChip(\r\n              iconTheme: const IconThemeData(color: Colors.amber),\r\n              avatar: const Icon(Icons.favorite_rounded),\r\n              label: const Text(\u0027FilterChip\u0027),\r\n              selected: false,\r\n              onSelected: _isEnable ? (bool value) {} : null,\r\n            ),\r\n            InputChip(\r\n              iconTheme: const IconThemeData(color: Colors.amber),\r\n              avatar: const Icon(Icons.favorite_rounded),\r\n              label: const Text(\u0027InputChip\u0027),\r\n              isEnabled: _isEnable,\r\n              onPressed: () {},\r\n            ),\r\n            ActionChip(\r\n              iconTheme: const IconThemeData(color: Colors.amber),\r\n              avatar: const Icon(Icons.favorite_rounded),\r\n              label: const Text(\u0027ActionChip\u0027),\r\n              onPressed: _isEnable ? () {} : null,\r\n            ),\r\n            ChoiceChip(\r\n              iconTheme: const IconThemeData(color: Colors.amber),\r\n              avatar: const Icon(Icons.favorite_rounded),\r\n              label: const Text(\u0027ChoiceChip\u0027),\r\n              selected: false,\r\n              onSelected: _isEnable ? (bool value) {} : null,\r\n            ),\r\n          ],\r\n        ),\r\n      ),\r\n      floatingActionButton: FloatingActionButton(\r\n        onPressed: () {},\r\n        child: const Icon(Icons.add),\r\n      ),\r\n    );\r\n  }\r\n}\r\n\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n### Before\r\n![Screenshot 2023-09-29 at 16 59 39](https://github.com/flutter/flutter/assets/48603081/4bc32032-cff3-4237-812f-86f17ed95337)\r\n\r\n### After\r\n\r\n![Screenshot 2023-09-29 at 16 55 24](https://github.com/flutter/flutter/assets/48603081/05a1fc52-fb31-4790-a840-18f2e9718241)",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "142fc4058b6fb87268d918faf29030f14483c5a0",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/src/material/action_chip.dart",
      "new_id": "ab773e90b9ad1b421df3a21588f0b0872f4c14ba",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/src/material/action_chip.dart"
    },
    {
      "type": "modify",
      "old_id": "757c64269e489f1282cb3864d55e14761ec45584",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/src/material/chip.dart",
      "new_id": "5c785ae537e491036c1be1131eddf4235599d449",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/src/material/chip.dart"
    },
    {
      "type": "modify",
      "old_id": "c56a1832b3dfd550ad59a03cdd4c87fba2bba641",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/src/material/filter_chip.dart",
      "new_id": "317c9452c621d9e7de2b0f6cd5ff4f285cd96eed",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/src/material/filter_chip.dart"
    },
    {
      "type": "modify",
      "old_id": "13c97d4a50f4ee5b183a25b32405850bb1f351e2",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/src/material/input_chip.dart",
      "new_id": "d3f7ba26dd2a7515f34a60b739e89c0dc5f58667",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/src/material/input_chip.dart"
    },
    {
      "type": "modify",
      "old_id": "310db84c5c4edab036206d47edc0957e90009210",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/material/action_chip_test.dart",
      "new_id": "4aa5d6110ba1ce8596e6dfb11af95550b8f24d00",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/material/action_chip_test.dart"
    },
    {
      "type": "modify",
      "old_id": "cfc57b583d807048c5d64288d05506eba36ce086",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/material/chip_test.dart",
      "new_id": "879cce5cc1ea95b0c7c36f751eed4068ad8f6842",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/material/chip_test.dart"
    },
    {
      "type": "modify",
      "old_id": "d65cf6955e4565260a85a2ac255e16c2410881e6",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/material/chip_theme_test.dart",
      "new_id": "82658d6b442012a83232d6e18edfcc0968bb481b",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/material/chip_theme_test.dart"
    },
    {
      "type": "modify",
      "old_id": "2f97610fd203c17cef7dbefd313f61c60f3eeaf8",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/material/choice_chip_test.dart",
      "new_id": "faad789a14fde8551704be62720c61f8073ada6d",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/material/choice_chip_test.dart"
    },
    {
      "type": "modify",
      "old_id": "3d46afa83fd1b17ff3f8ff63b34533ea5e249773",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/material/filter_chip_test.dart",
      "new_id": "fd69291d3f42090f5929acfef8143a6e08dec590",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/material/filter_chip_test.dart"
    },
    {
      "type": "modify",
      "old_id": "bb43b64cf4661b6e9f456f18aaf69f40a36e7533",
      "old_mode": 33188,
      "old_path": "packages/flutter/test/material/input_chip_test.dart",
      "new_id": "3c8b8db869c9ffcadce86152ac8cdf3e400651c1",
      "new_mode": 33188,
      "new_path": "packages/flutter/test/material/input_chip_test.dart"
    }
  ]
}
