From aba1629f5e0dd09e2e7b27621cac0c14ea0fd769 Mon Sep 17 00:00:00 2001 From: Arthi-chaud Date: Sat, 19 Feb 2022 18:30:40 +0100 Subject: [PATCH] Mobile CLient: fix page transition --- mobile/lib/src/main.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/mobile/lib/src/main.dart b/mobile/lib/src/main.dart index 73ef24c..8e1f8a5 100644 --- a/mobile/lib/src/main.dart +++ b/mobile/lib/src/main.dart @@ -53,14 +53,17 @@ class Aeris extends StatelessWidget { settings: settings, pageBuilder: (_, __, ___) => routes[settings.name].call(), transitionDuration: const Duration(milliseconds: 350), - transitionsBuilder: (context, animation, secondaryAnimation, - child) => ScaleTransition( - child: child, - scale: CurvedAnimation( - parent: animation, - curve: Curves.ease, - )) - ); + transitionsBuilder: (context, animation, secondaryAnimation, child) => + SlideTransition( + child: child, + position: animation.drive( + Tween( + begin: const Offset(1.0, 0.0), + end: Offset.zero + ) + ) + ) + ); }); } }