From 61d76b075d32d4098eb245154569fec6d097c298 Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Sun, 14 Nov 2021 21:12:57 -0500 Subject: [PATCH] Fix bottom navigation bar clipping [skip ci] --- lib/screens/home.dart | 44 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 1bd62a99..a7046453 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -79,31 +79,29 @@ class _HomeState extends State { ); }, ), - bottomNavigationBar: SafeArea( - child: Observer( - builder: (_) { - return BottomNavigationBar( - type: BottomNavigationBarType.fixed, - items: [ - if (context.read().isLoggedIn) - const BottomNavigationBarItem( - icon: Icon(Icons.favorite), - label: 'Followed', - ), + bottomNavigationBar: Observer( + builder: (_) { + return BottomNavigationBar( + type: BottomNavigationBarType.fixed, + items: [ + if (context.read().isLoggedIn) const BottomNavigationBarItem( - icon: Icon(Icons.arrow_upward), - label: 'Top', + icon: Icon(Icons.favorite), + label: 'Followed', ), - const BottomNavigationBarItem( - icon: Icon(Icons.search), - label: 'Search', - ), - ], - currentIndex: widget.homeStore.selectedIndex, - onTap: widget.homeStore.handleTap, - ); - }, - ), + const BottomNavigationBarItem( + icon: Icon(Icons.arrow_upward), + label: 'Top', + ), + const BottomNavigationBarItem( + icon: Icon(Icons.search), + label: 'Search', + ), + ], + currentIndex: widget.homeStore.selectedIndex, + onTap: widget.homeStore.handleTap, + ); + }, ), ); }