Guest User

Untitled

a guest
May 27th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. return new Scaffold(
  2. appBar: new AppBar(
  3. title: getAppBarTitle(),
  4. automaticallyImplyLeading: false,
  5. backgroundColor: appBarColorShared,
  6. actions: getAppBarIcons(),
  7. ),
  8. bottomNavigationBar: bottomNavigationBar, //Add the bottom Navigation Bar
  9. body: tabBarView, //The container that will display the pages
  10. );
  11.  
  12. List<Widget> getAppBarIcons()
  13. {
  14. List<Widget> list = List<Widget>();
  15. if (selectedTabEnum == MyWidgetTabs.Page4) {
  16. var icon = IconButton(
  17. icon: Icon(Icons.add_circle_outline),
  18. onPressed: () {
  19. BrowseState.createEmployeeProfile(); //Problem : This is a static method :(
  20. },);
  21. }
  22. list.add(icon);
  23. return list;
  24. }
Add Comment
Please, Sign In to add comment