From 2e46ea7fd60317922887488893120cb706688890 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Mon, 25 Mar 2024 07:52:36 +0100 Subject: [PATCH] chore: Try out CupertinoPage instead of custom transition in router --- lib/config/routes.dart | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/config/routes.dart b/lib/config/routes.dart index d525b94e6..17518124a 100644 --- a/lib/config/routes.dart +++ b/lib/config/routes.dart @@ -381,16 +381,12 @@ abstract class AppRoutes { ]; static Page defaultPageBuilder(BuildContext context, Widget child) => - CustomTransitionPage( - child: child, - transitionsBuilder: (context, animation, secondaryAnimation, child) => - FluffyThemes.isColumnMode(context) - ? FadeTransition(opacity: animation, child: child) - : CupertinoPageTransition( - primaryRouteAnimation: animation, - secondaryRouteAnimation: secondaryAnimation, - linearTransition: false, - child: child, - ), - ); + FluffyThemes.isColumnMode(context) + ? CustomTransitionPage( + child: child, + transitionsBuilder: + (context, animation, secondaryAnimation, child) => + FadeTransition(opacity: animation, child: child), + ) + : CupertinoPage(child: child); }