Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return new Scaffold(
- appBar: new AppBar(
- title: getAppBarTitle(),
- automaticallyImplyLeading: false,
- backgroundColor: appBarColorShared,
- actions: getAppBarIcons(),
- ),
- bottomNavigationBar: bottomNavigationBar, //Add the bottom Navigation Bar
- body: tabBarView, //The container that will display the pages
- );
- List<Widget> getAppBarIcons()
- {
- List<Widget> list = List<Widget>();
- if (selectedTabEnum == MyWidgetTabs.Page4) {
- var icon = IconButton(
- icon: Icon(Icons.add_circle_outline),
- onPressed: () {
- BrowseState.createEmployeeProfile(); //Problem : This is a static method :(
- },);
- }
- list.add(icon);
- return list;
- }
Add Comment
Please, Sign In to add comment