)]}'
{
  "commit": "5f2adddd7c2fc3dcab8f4e03b9e29c0ef073fbb4",
  "tree": "3adf7633cabfae45f33a7b05d257171bf79b6036",
  "parents": [
    "928815a06ea5f1ef7f6b4810b92ca94c24c01907"
  ],
  "author": {
    "name": "Ben Konyi",
    "email": "bkonyi@google.com",
    "time": "Thu Oct 29 16:01:40 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Oct 29 16:01:40 2026 +0000"
  },
  "message": "[widget_preview] Do not leak ListTileTheme into previewed widgets (#194992)\n\nIn the widget preview scaffold, `WidgetPreviewGroupWidget` wrapped\n`ExpansionTile` in a `ListTileTheme`. Because `ListTileTheme` is an\n`InheritedTheme` (`InheritedWidget`), it enclosed all previewed child\nwidgets. Because `MaterialApp` and `Theme` do not insert a\n`ListTileTheme` boundary to reset ancestor inherited themes, previewed\n`ListTile` and `SwitchListTile` widgets inherited the scaffold\u0027s\nbrightened `tileColor` (`#201E24`).\n\nThis removes the `ListTileTheme` and dead `Theme(dividerColor:\nColors.transparent)` wrappers around `ExpansionTile`, removes unused\n`listTileTheme` from the scaffold\u0027s `_baseTheme`, and adds integration\nregression tests in `theming_test.dart`.\n\nFixes https://github.com/flutter/flutter/issues/194660\n\n### Visual Behavior\n- **Before**: `SwitchListTile` and `ListTile` rendered with an\nunintended dark tile background (`#201E24`).\n- **After**: `SwitchListTile` and `ListTile` render with the default\ntransparent background.\n\nPrevious output:\n```\n00:01 +4: Previewed MaterialApp ListTileTheme is not overridden\n══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════\nThe following TestFailure was thrown running a test:\nExpected: MaterialColor:\u003cMaterialColor(primary value: Color(alpha: 1.0000, red: 0.9569, green:\n0.2627, blue: 0.2118, colorSpace: ColorSpace.sRGB))\u003e\n  Actual: Color:\u003cColor(alpha: 1.0000, red: 0.1245, green: 0.1171, blue: 0.1394, colorSpace:\nColorSpace.sRGB)\u003e\n════════════════════════════════════════════════════════════════════════════════════════════════════\n00:02 +4 -1: Previewed MaterialApp ListTileTheme is not overridden [E]\n\n00:02 +4 -1: ListTileTheme does not leak into previewed widgets without MaterialApp\n══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════\nThe following TestFailure was thrown running a test:\nExpected: null\n  Actual: Color:\u003cColor(alpha: 1.0000, red: 0.1245, green: 0.1171, blue: 0.1394, colorSpace:\nColorSpace.sRGB)\u003e\n════════════════════════════════════════════════════════════════════════════════════════════════════\n00:02 +4 -2: ListTileTheme does not leak into previewed widgets without MaterialApp [E]\n\n00:02 +4 -2: SwitchListTile in preview has transparent background by default\n══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════\nThe following TestFailure was thrown running a test:\nExpected: has `color` with value Color:\u003cColor(alpha: 0.0000, red: 0.0000, green: 0.0000, blue:\n0.0000, colorSpace: ColorSpace.extendedSRGB)\u003e\n  Actual: ShapeDecoration:\u003cShapeDecoration(color: Color(alpha: 1.0000, red: 0.1245, green: 0.1171,\nblue: 0.1394, colorSpace: ColorSpace.sRGB), shape: RoundedRectangleBorder(BorderSide(none),\nBorderRadius.circular(12.0)))\u003e\n   Which: has `color` with value Color:\u003cColor(alpha: 1.0000, red: 0.1245, green: 0.1171, blue:\n0.1394, colorSpace: ColorSpace.sRGB)\u003e\n════════════════════════════════════════════════════════════════════════════════════════════════════\n00:03 +4 -3: SwitchListTile in preview has transparent background by default [E]\n```\n\nCurrent output:\n```\n00:00 +0: loading dev/integration_tests/widget_preview_scaffold/test/theming_test.dart\n00:00 +0: Theming is correctly propagated down to the previewed widget\n00:00 +1: Default theme is used if no preview theme is specified\n00:00 +2: BrightnessToggleButton correctly toggles preview brightness\n00:01 +3: Updated brightness property doesn\u0027t override state set by BrightnessToggleButton\n00:01 +4: Previewed MaterialApp ListTileTheme is not overridden\n00:01 +5: ListTileTheme does not leak into previewed widgets without MaterialApp\n00:01 +6: SwitchListTile in preview has transparent background by default\n00:01 +7: All tests passed!\n```",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "564ad2f769bc0e70b0758377e00031f61a8bec28",
      "old_mode": 33188,
      "old_path": "dev/integration_tests/widget_preview_scaffold/lib/src/theme/theme.dart",
      "new_id": "bc47abed6d6afe9dd0635ae3650b22851a3a6ab8",
      "new_mode": 33188,
      "new_path": "dev/integration_tests/widget_preview_scaffold/lib/src/theme/theme.dart"
    },
    {
      "type": "modify",
      "old_id": "6aa85484812caf50841a3539cc8980686675470d",
      "old_mode": 33188,
      "old_path": "dev/integration_tests/widget_preview_scaffold/lib/src/widget_preview_rendering.dart",
      "new_id": "e533019891ae0b3f87e0ac4095228f10404cc251",
      "new_mode": 33188,
      "new_path": "dev/integration_tests/widget_preview_scaffold/lib/src/widget_preview_rendering.dart"
    },
    {
      "type": "modify",
      "old_id": "51abf13ce93f0c4e68dc8185cd4cde09ca76161e",
      "old_mode": 33188,
      "old_path": "dev/integration_tests/widget_preview_scaffold/test/theming_test.dart",
      "new_id": "1d9634005b868ff6ec5258cc752ed6cab9086826",
      "new_mode": 33188,
      "new_path": "dev/integration_tests/widget_preview_scaffold/test/theming_test.dart"
    },
    {
      "type": "modify",
      "old_id": "564ad2f769bc0e70b0758377e00031f61a8bec28",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/templates/widget_preview_scaffold/lib/src/theme/theme.dart.tmpl",
      "new_id": "bc47abed6d6afe9dd0635ae3650b22851a3a6ab8",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/templates/widget_preview_scaffold/lib/src/theme/theme.dart.tmpl"
    },
    {
      "type": "modify",
      "old_id": "6aa85484812caf50841a3539cc8980686675470d",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/templates/widget_preview_scaffold/lib/src/widget_preview_rendering.dart.tmpl",
      "new_id": "e533019891ae0b3f87e0ac4095228f10404cc251",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/templates/widget_preview_scaffold/lib/src/widget_preview_rendering.dart.tmpl"
    }
  ]
}
