I have a bottomNavigation Bar with a TabBarview as below:
@override
Widget build(BuildContext context) {
return new Scaffold(
//drawer: _drawer,
appBar: new AppBar(automaticallyImplyLeading: false,
title: new Text(_choice.title), actions: getAppBarActions(context)),
bottomNavigationBar: new Material(
color: CupertinoColors.lightBackgroundGray,
//color: c,
child: new Container(
height: 50.0,
child: new TabBar(
controller: controller,
//labelColor: Colors.grey,
tabs: mytablist,
labelStyle: new TextStyle(fontSize: 10.0),
labelColor: CupertinoColors.activeBlue,
unselectedLabelColor: CupertinoColors.inactiveGray,
isScrollable: true,
indicatorWeight: 1.0,
indicatorColor: CupertinoColors.activeBlue,
//indicatorPadding: new EdgeInsets.only(bottom: 5.0),
),
)),
body: new TabBarView(
controller: controller,
children: _tabWidgets(),
),
);
}
I have of courses pages that are navigated to, I also navigate to pages off the tabbarview that do not have the bottomnavigation, however I want to be able to navigate to one of the pages within the bottomnav, but when I do using something like this:
Navigator.of(context)..pushReplacementNamed(Chat.ChatServerPage.routeName);
It goes to the page but without the appbar or the bottomnavigationbar, anyone know how to accomplish this? I have tried all that I could find. Any help would be appreciated.