From 5d31cd8e222c37eadc93223f725090e55b26e6fb Mon Sep 17 00:00:00 2001 From: Nopylacetat Date: Fri, 20 Oct 2023 20:01:27 +0200 Subject: [PATCH] simple Navigation --- lib/pages/splash_page.dart | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/pages/splash_page.dart b/lib/pages/splash_page.dart index f7637cf..7f44715 100644 --- a/lib/pages/splash_page.dart +++ b/lib/pages/splash_page.dart @@ -37,8 +37,8 @@ class _SplashPageState extends State { if (DbHelper.currentUser == null) { return const LoginPage(); } - return const Scaffold( - body: Column( + return Scaffold( + body: const Column( children: [ Text('Logged in!'), TextButton( @@ -47,6 +47,18 @@ class _SplashPageState extends State { ), ], ), + bottomNavigationBar: BottomNavigationBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(Icons.settings), + label: 'Settings', + ), + BottomNavigationBarItem( + icon: Icon(Icons.home), + label: 'Home', + ), + ], + ), ); } }