|
|
@ -221,17 +221,26 @@ class _HomeViewState extends State<HomeView> with TickerProviderStateMixin {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
title: Text(title),
|
|
|
|
title: Text(title),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: TabBarView(
|
|
|
|
body: Column(
|
|
|
|
controller: _pageController,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
ContactList(onAppBarButtonTap: _onAppBarButtonTap.stream),
|
|
|
|
Expanded(
|
|
|
|
ChatList(
|
|
|
|
child: TabBarView(
|
|
|
|
onCustomAppBar: (appBar) => setState(() => this.appBar = appBar),
|
|
|
|
controller: _pageController,
|
|
|
|
onAppBarButtonTap: _onAppBarButtonTap.stream,
|
|
|
|
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(
|
|
|
|
Divider(height: 1),
|
|
|
|
server: _server, onAppBarButtonTap: _onAppBarButtonTap.stream),
|
|
|
|
|
|
|
|
Settings(onAppBarButtonTap: _onAppBarButtonTap.stream),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
floatingActionButton: fabIcon == null
|
|
|
|
floatingActionButton: fabIcon == null
|
|
|
@ -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,
|
|
|
|