diff --git a/lib/pages/home.dart b/lib/pages/home.dart index 63fb2d2..cf244ec 100644 --- a/lib/pages/home.dart +++ b/lib/pages/home.dart @@ -161,14 +161,17 @@ class _HomePageButtonState extends State<_HomePageButton> { return; } - Navigator.of(context).push( - NesVerticalCloseTransition.route( - pageBuilder: widget.openBuilder, - duration: Prefs.fasterPageTransitions.value - ? const Duration(milliseconds: 450) - : const Duration(milliseconds: 750), - ), - ); + final route = MediaQuery.disableAnimationsOf(context) + ? PageRouteBuilder( + pageBuilder: widget.openBuilder, + ) + : NesVerticalCloseTransition.route( + pageBuilder: widget.openBuilder, + duration: Prefs.fasterPageTransitions.value + ? const Duration(milliseconds: 450) + : const Duration(milliseconds: 750), + ); + Navigator.of(context).push(route); } @override