From 0e83ada593c1af874f4d04daf6e3eda127e3d402 Mon Sep 17 00:00:00 2001 From: Eilidh Southren Date: Wed, 28 Dec 2022 20:34:42 +0000 Subject: [PATCH] Update M3 IconButton unselected focused opacity (#117321) * Bottom App Bar M3 background color fix * update test * test update * remove whitespace * Update IconButton unselected focused opacity * Delete generated_plugins.cmake --- dev/tools/gen_defaults/data/icon_button.json | 2 +- packages/flutter/lib/src/material/icon_button.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/tools/gen_defaults/data/icon_button.json b/dev/tools/gen_defaults/data/icon_button.json index 37235c032500..3e8ac2cf5739 100644 --- a/dev/tools/gen_defaults/data/icon_button.json +++ b/dev/tools/gen_defaults/data/icon_button.json @@ -18,7 +18,7 @@ "md.comp.icon-button.state-layer.size": 40.0, "md.comp.icon-button.unselected.focus.icon.color": "onSurfaceVariant", "md.comp.icon-button.unselected.focus.state-layer.color": "onSurfaceVariant", - "md.comp.icon-button.unselected.focus.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.icon-button.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", "md.comp.icon-button.unselected.hover.icon.color": "onSurfaceVariant", "md.comp.icon-button.unselected.hover.state-layer.color": "onSurfaceVariant", "md.comp.icon-button.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", diff --git a/packages/flutter/lib/src/material/icon_button.dart b/packages/flutter/lib/src/material/icon_button.dart index 4ce37ab97bd1..c0817e3647e9 100644 --- a/packages/flutter/lib/src/material/icon_button.dart +++ b/packages/flutter/lib/src/material/icon_button.dart @@ -1011,7 +1011,7 @@ class _IconButtonDefaultsM3 extends ButtonStyle { return _colors.onSurfaceVariant.withOpacity(0.08); } if (states.contains(MaterialState.focused)) { - return _colors.onSurfaceVariant.withOpacity(0.08); + return _colors.onSurfaceVariant.withOpacity(0.12); } if (states.contains(MaterialState.pressed)) { return _colors.onSurfaceVariant.withOpacity(0.12);