From 63c2dfa8000116cb83fe82f91df3334c0ce75cfb Mon Sep 17 00:00:00 2001 From: Nopylacetat Date: Fri, 20 Oct 2023 22:31:21 +0200 Subject: [PATCH] App Bar --- lib/pages/splash_page.dart | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/pages/splash_page.dart b/lib/pages/splash_page.dart index 3c5c7c5..6cda478 100644 --- a/lib/pages/splash_page.dart +++ b/lib/pages/splash_page.dart @@ -54,16 +54,13 @@ class _SplashPageState extends State { Provider.of(context, listen: false).feed; return Scaffold( + appBar: AppBar(actions: [ + IconButton( + onPressed: () => DbHelper.logout(), + icon: const Icon(Icons.logout), + ) + ]), body: tabs.elementAt(currentPageIndex), - // const Column( - // children: [ - // Text('Logged in!'), - // TextButton( - // onPressed: DbHelper.logout, - // child: Text('Log out'), - // ), - // ], - // ), bottomNavigationBar: BottomNavigationBar( items: const [ BottomNavigationBarItem(