fix: increase animation speed

This commit is contained in:
Michael Thomas 2023-08-30 22:43:55 -04:00
parent 662a1ae157
commit 513b2d2f14
1 changed files with 3 additions and 4 deletions

View File

@ -35,15 +35,14 @@ class _MainLayoutState extends State<MainLayout> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AutoTabsScaffold( return AutoTabsScaffold(
animationDuration: const Duration(milliseconds: 150),
routes: const [ routes: const [
HomePageRouter(children: [ HomePageRouter(children: [
HomeRoute(), HomeRoute(),
]), ]),
MapRoute(), MapRoute(),
EventsRoute(), EventsRoute(),
InfoPageRouter(children: [ InfoPageRouter(children: [InfoRoute()]),
InfoRoute()
]),
], ],
bottomNavigationBuilder: (_, tabsRouter) { bottomNavigationBuilder: (_, tabsRouter) {
return WillPopScope( return WillPopScope(
@ -69,7 +68,7 @@ class _MainLayoutState extends State<MainLayout> {
padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 20), padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 20),
child: SalomonBottomBar( child: SalomonBottomBar(
itemPadding: itemPadding:
const EdgeInsets.symmetric(vertical: 12, horizontal: 16), const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
items: <SalomonBottomBarItem>[ items: <SalomonBottomBarItem>[
SalomonBottomBarItem( SalomonBottomBarItem(
icon: const Icon(FlutterRemix.home_line), icon: const Icon(FlutterRemix.home_line),