mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-29 05:40:17 +08:00
@@ -29,6 +29,8 @@ $LayoutBuilderPatch = "lib/scripts/layout_builder.patch"
|
||||
# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/2308
|
||||
$NavigationDrawerPatch = "lib/scripts/navigation_drawer.patch"
|
||||
|
||||
$PopupMenuPatch = "lib/scripts/popup_menu.patch"
|
||||
|
||||
# TODO: remove
|
||||
# https://github.com/flutter/flutter/issues/90223
|
||||
$ModalBarrierPatch = "lib/scripts/modal_barrier.patch"
|
||||
@@ -55,7 +57,8 @@ Set-Location $env:FLUTTER_ROOT
|
||||
$picks = @()
|
||||
$reverts = @()
|
||||
$patches = @($ModalBarrierPatch, $TextSelectionPatch, $MouseCursorPatch,
|
||||
$ImageAnimPatch, $LayoutBuilderPatch, $NavigationDrawerPatch)
|
||||
$ImageAnimPatch, $LayoutBuilderPatch, $NavigationDrawerPatch,
|
||||
$PopupMenuPatch)
|
||||
|
||||
switch ($platform.ToLower()) {
|
||||
"android" {
|
||||
|
||||
16
lib/scripts/popup_menu.patch
Normal file
16
lib/scripts/popup_menu.patch
Normal 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(
|
||||
Reference in New Issue
Block a user