Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-05 20:36:33 +08:00
parent 88f0ab1dea
commit 50070997de
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/packages/flutter/lib/src/material/navigation_drawer.dart b/packages/flutter/lib/src/material/navigation_drawer.dart
index 8a16764cb0c..6b8545c3781 100644
--- a/packages/flutter/lib/src/material/navigation_drawer.dart
+++ b/packages/flutter/lib/src/material/navigation_drawer.dart
@@ -410,7 +410,7 @@ class _NavigationDestinationBuilder extends StatelessWidget {
child: _NavigationDestinationSemantics(
child: SizedBox(
height: navigationDrawerTheme.tileHeight ?? defaults.tileHeight,
- child: inkWell,
+ child: Material(type: MaterialType.transparency, child: inkWell),
),
),
);

View File

@@ -26,6 +26,9 @@ $ImageAnimPatch = "lib/scripts/image_anim.patch"
$LayoutBuilderPatch = "lib/scripts/layout_builder.patch" $LayoutBuilderPatch = "lib/scripts/layout_builder.patch"
# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/2308
$NavigationDrawerPatch = "lib/scripts/navigation_drawer.patch"
# TODO: remove # TODO: remove
# https://github.com/flutter/flutter/issues/90223 # https://github.com/flutter/flutter/issues/90223
$ModalBarrierPatch = "lib/scripts/modal_barrier.patch" $ModalBarrierPatch = "lib/scripts/modal_barrier.patch"
@@ -46,7 +49,7 @@ Set-Location $env:FLUTTER_ROOT
$picks = @() $picks = @()
$reverts = @() $reverts = @()
$patches = @($ModalBarrierPatch, $TextSelectionPatch, $MouseCursorPatch, $patches = @($ModalBarrierPatch, $TextSelectionPatch, $MouseCursorPatch,
$ImageAnimPatch, $LayoutBuilderPatch) $ImageAnimPatch, $LayoutBuilderPatch, $NavigationDrawerPatch)
switch ($platform.ToLower()) { switch ($platform.ToLower()) {
"android" { "android" {