change: Bottom bar divider

This commit is contained in:
Christian Pauly 2021-02-07 11:17:12 +01:00
parent 5859b7cc55
commit 3185773518

View File

@ -221,19 +221,28 @@ class _HomeViewState extends State<HomeView> with TickerProviderStateMixin {
], ],
title: Text(title), title: Text(title),
), ),
body: TabBarView( body: Column(
children: [
Expanded(
child: TabBarView(
controller: _pageController, controller: _pageController,
children: [ children: [
ContactList(onAppBarButtonTap: _onAppBarButtonTap.stream), ContactList(onAppBarButtonTap: _onAppBarButtonTap.stream),
ChatList( ChatList(
onCustomAppBar: (appBar) => setState(() => this.appBar = appBar), onCustomAppBar: (appBar) =>
setState(() => this.appBar = appBar),
onAppBarButtonTap: _onAppBarButtonTap.stream, onAppBarButtonTap: _onAppBarButtonTap.stream,
), ),
Discover( Discover(
server: _server, onAppBarButtonTap: _onAppBarButtonTap.stream), server: _server,
onAppBarButtonTap: _onAppBarButtonTap.stream),
Settings(onAppBarButtonTap: _onAppBarButtonTap.stream), Settings(onAppBarButtonTap: _onAppBarButtonTap.stream),
], ],
), ),
),
Divider(height: 1),
],
),
floatingActionButton: fabIcon == null floatingActionButton: fabIcon == null
? null ? null
: FloatingActionButton( : FloatingActionButton(
@ -247,7 +256,7 @@ class _HomeViewState extends State<HomeView> with TickerProviderStateMixin {
), ),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: BottomNavigationBar( bottomNavigationBar: BottomNavigationBar(
elevation: 1, elevation: 0,
unselectedItemColor: Theme.of(context).textTheme.bodyText1.color, unselectedItemColor: Theme.of(context).textTheme.bodyText1.color,
currentIndex: currentIndex, currentIndex: currentIndex,
showSelectedLabels: true, showSelectedLabels: true,