change transition easing to easeOut on menus
This commit is contained in:
parent
1222f15766
commit
6c5e9f84d7
1 changed files with 9 additions and 49 deletions
|
|
@ -84,11 +84,6 @@ final _router = GoRouter(
|
||||||
path: '/main',
|
path: '/main',
|
||||||
builder: (context, state) => const MainPage(),
|
builder: (context, state) => const MainPage(),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'addmanufactorer',
|
|
||||||
// path: '/addmanufactorer',
|
|
||||||
// builder: (context, state) => const AddManufacturerPage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'addmanufactorer',
|
name: 'addmanufactorer',
|
||||||
path: '/addmanufactorer',
|
path: '/addmanufactorer',
|
||||||
|
|
@ -99,15 +94,10 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'addmedicines',
|
|
||||||
// path: '/addmedicines',
|
|
||||||
// builder: (context, state) => const AddMedicinePage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'addmedicines',
|
name: 'addmedicines',
|
||||||
path: '/addmedicines',
|
path: '/addmedicines',
|
||||||
|
|
@ -118,15 +108,10 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'addgenerics',
|
|
||||||
// path: '/addgenerics',
|
|
||||||
// builder: (context, state) => const AddGenericsPage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'addgenerics',
|
name: 'addgenerics',
|
||||||
path: '/addgenerics',
|
path: '/addgenerics',
|
||||||
|
|
@ -137,15 +122,10 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'addtype',
|
|
||||||
// path: '/addtype',
|
|
||||||
// builder: (context, state) => const AddTypePage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'addtype',
|
name: 'addtype',
|
||||||
path: '/addtype',
|
path: '/addtype',
|
||||||
|
|
@ -156,15 +136,10 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'addcategory',
|
|
||||||
// path: '/addcategory',
|
|
||||||
// builder: (context, state) => const AddCategoryPage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'addcategory',
|
name: 'addcategory',
|
||||||
path: '/addcategory',
|
path: '/addcategory',
|
||||||
|
|
@ -175,15 +150,10 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'addstock',
|
|
||||||
// path: '/addstock',
|
|
||||||
// builder: (context, state) => const AddStockPage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'addstock',
|
name: 'addstock',
|
||||||
path: '/addstock',
|
path: '/addstock',
|
||||||
|
|
@ -194,15 +164,10 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'liststocks',
|
|
||||||
// path: '/liststocks',
|
|
||||||
// builder: (context, state) => const ListStocksPage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'liststocks',
|
name: 'liststocks',
|
||||||
path: '/liststocks',
|
path: '/liststocks',
|
||||||
|
|
@ -213,15 +178,10 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// GoRoute(
|
|
||||||
// name: 'deletestock',
|
|
||||||
// path: '/deletestock',
|
|
||||||
// builder: (context, state) => const DeleteStockPage(),
|
|
||||||
// ),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: 'deletestock',
|
name: 'deletestock',
|
||||||
path: '/deletestock',
|
path: '/deletestock',
|
||||||
|
|
@ -232,7 +192,7 @@ final _router = GoRouter(
|
||||||
Widget child) =>
|
Widget child) =>
|
||||||
SlideTransition(
|
SlideTransition(
|
||||||
position: animation.drive(
|
position: animation.drive(
|
||||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeOut))),
|
||||||
child: child),
|
child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue