From 513b2d2f14d37ae38839b5e0756ee1c109a7ecd7 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Wed, 30 Aug 2023 22:43:55 -0400 Subject: [PATCH] fix: increase animation speed --- lib/src/layouts/main/index.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/layouts/main/index.dart b/lib/src/layouts/main/index.dart index bfd7475..f7b0810 100644 --- a/lib/src/layouts/main/index.dart +++ b/lib/src/layouts/main/index.dart @@ -35,15 +35,14 @@ class _MainLayoutState extends State { @override Widget build(BuildContext context) { return AutoTabsScaffold( + animationDuration: const Duration(milliseconds: 150), routes: const [ HomePageRouter(children: [ HomeRoute(), ]), MapRoute(), EventsRoute(), - InfoPageRouter(children: [ - InfoRoute() - ]), + InfoPageRouter(children: [InfoRoute()]), ], bottomNavigationBuilder: (_, tabsRouter) { return WillPopScope( @@ -69,7 +68,7 @@ class _MainLayoutState extends State { padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 20), child: SalomonBottomBar( itemPadding: - const EdgeInsets.symmetric(vertical: 12, horizontal: 16), + const EdgeInsets.symmetric(vertical: 12, horizontal: 16), items: [ SalomonBottomBarItem( icon: const Icon(FlutterRemix.home_line),