From 3185773518a376d3332921924dca2b64be4b5a57 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 7 Feb 2021 11:17:12 +0100 Subject: [PATCH] change: Bottom bar divider --- lib/views/home_view.dart | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/lib/views/home_view.dart b/lib/views/home_view.dart index fa631fb9..1067c902 100644 --- a/lib/views/home_view.dart +++ b/lib/views/home_view.dart @@ -221,17 +221,26 @@ class _HomeViewState extends State with TickerProviderStateMixin { ], title: Text(title), ), - body: TabBarView( - controller: _pageController, + body: Column( children: [ - ContactList(onAppBarButtonTap: _onAppBarButtonTap.stream), - ChatList( - onCustomAppBar: (appBar) => setState(() => this.appBar = appBar), - onAppBarButtonTap: _onAppBarButtonTap.stream, + Expanded( + child: TabBarView( + controller: _pageController, + children: [ + ContactList(onAppBarButtonTap: _onAppBarButtonTap.stream), + ChatList( + onCustomAppBar: (appBar) => + setState(() => this.appBar = appBar), + onAppBarButtonTap: _onAppBarButtonTap.stream, + ), + Discover( + server: _server, + onAppBarButtonTap: _onAppBarButtonTap.stream), + Settings(onAppBarButtonTap: _onAppBarButtonTap.stream), + ], + ), ), - Discover( - server: _server, onAppBarButtonTap: _onAppBarButtonTap.stream), - Settings(onAppBarButtonTap: _onAppBarButtonTap.stream), + Divider(height: 1), ], ), floatingActionButton: fabIcon == null @@ -247,7 +256,7 @@ class _HomeViewState extends State with TickerProviderStateMixin { ), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, bottomNavigationBar: BottomNavigationBar( - elevation: 1, + elevation: 0, unselectedItemColor: Theme.of(context).textTheme.bodyText1.color, currentIndex: currentIndex, showSelectedLabels: true,