diff --git a/lib/main.dart b/lib/main.dart index 02d20c6..1a1cda2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -84,11 +84,6 @@ final _router = GoRouter( path: '/main', builder: (context, state) => const MainPage(), ), - // GoRoute( - // name: 'addmanufactorer', - // path: '/addmanufactorer', - // builder: (context, state) => const AddManufacturerPage(), - // ), GoRoute( name: 'addmanufactorer', path: '/addmanufactorer', @@ -99,15 +94,10 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ), - // GoRoute( - // name: 'addmedicines', - // path: '/addmedicines', - // builder: (context, state) => const AddMedicinePage(), - // ), GoRoute( name: 'addmedicines', path: '/addmedicines', @@ -118,15 +108,10 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ), - // GoRoute( - // name: 'addgenerics', - // path: '/addgenerics', - // builder: (context, state) => const AddGenericsPage(), - // ), GoRoute( name: 'addgenerics', path: '/addgenerics', @@ -137,15 +122,10 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ), - // GoRoute( - // name: 'addtype', - // path: '/addtype', - // builder: (context, state) => const AddTypePage(), - // ), GoRoute( name: 'addtype', path: '/addtype', @@ -156,15 +136,10 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ), - // GoRoute( - // name: 'addcategory', - // path: '/addcategory', - // builder: (context, state) => const AddCategoryPage(), - // ), GoRoute( name: 'addcategory', path: '/addcategory', @@ -175,15 +150,10 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ), - // GoRoute( - // name: 'addstock', - // path: '/addstock', - // builder: (context, state) => const AddStockPage(), - // ), GoRoute( name: 'addstock', path: '/addstock', @@ -194,16 +164,11 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ), - // GoRoute( - // name: 'liststocks', - // path: '/liststocks', - // builder: (context, state) => const ListStocksPage(), - // ), - GoRoute( + GoRoute( name: 'liststocks', path: '/liststocks', pageBuilder: (BuildContext context, GoRouterState state) => CustomTransitionPage( @@ -213,15 +178,10 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ), - // GoRoute( - // name: 'deletestock', - // path: '/deletestock', - // builder: (context, state) => const DeleteStockPage(), - // ), GoRoute( name: 'deletestock', path: '/deletestock', @@ -232,7 +192,7 @@ final _router = GoRouter( Widget child) => SlideTransition( position: animation.drive( - Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))), + Tween(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))), child: child), ), ),