diff --git a/lib/scripts/navigation_drawer.patch b/lib/scripts/navigation_drawer.patch new file mode 100644 index 000000000..c6c7de367 --- /dev/null +++ b/lib/scripts/navigation_drawer.patch @@ -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), + ), + ), + ); diff --git a/lib/scripts/patch.ps1 b/lib/scripts/patch.ps1 index e3475f2a1..87bea3084 100644 --- a/lib/scripts/patch.ps1 +++ b/lib/scripts/patch.ps1 @@ -26,6 +26,9 @@ $ImageAnimPatch = "lib/scripts/image_anim.patch" $LayoutBuilderPatch = "lib/scripts/layout_builder.patch" +# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/2308 +$NavigationDrawerPatch = "lib/scripts/navigation_drawer.patch" + # TODO: remove # https://github.com/flutter/flutter/issues/90223 $ModalBarrierPatch = "lib/scripts/modal_barrier.patch" @@ -46,7 +49,7 @@ Set-Location $env:FLUTTER_ROOT $picks = @() $reverts = @() $patches = @($ModalBarrierPatch, $TextSelectionPatch, $MouseCursorPatch, - $ImageAnimPatch, $LayoutBuilderPatch) + $ImageAnimPatch, $LayoutBuilderPatch, $NavigationDrawerPatch) switch ($platform.ToLower()) { "android" {