popup menu patch

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-28 20:11:56 +08:00
parent ace9404f5a
commit 0df637fb73
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
diff --git a/packages/flutter/lib/src/material/popup_menu.dart b/packages/flutter/lib/src/material/popup_menu.dart
index 8b84b2760d5..6ff222c4541 100644
--- a/packages/flutter/lib/src/material/popup_menu.dart
+++ b/packages/flutter/lib/src/material/popup_menu.dart
@@ -446,6 +446,11 @@ class PopupMenuItemState<T, W extends PopupMenuItem<T>> extends State<W> {
data: IconThemeData(opacity: isDark ? 0.5 : 0.38),
child: item,
);
+ } else {
+ item = IconTheme.merge(
+ data: IconThemeData(color: style.color),
+ child: item,
+ );
}
return MergeSemantics(