homeMenuDef method

  1. @override
MenuDefModel homeMenuDef()
override

Implementation

@override
MenuDefModel homeMenuDef() {
  List<MenuItemModel> menuItems = [];
//    menuItems.add(menuItemFeed(app, "feed", Feed.identifier, "Feed"));
  menuItems.add(menuItem(
      app, "apps", PlayStore.identifier, "Apps", Icons.power_settings_new));
  for (int i = 0; i < Welcome.theIdentifiers.length; i++) {
    menuItems.add(menuItemWelcome(
        app, Welcome.theIdentifiers[i], Welcome.theIdentifiers[i], "Welcome",
        privilegeLevelRequired: Welcome.menuPrivilegeLevelsRequired[i]));
  }
  menuItems.add(menuItemAbout(app, "about", Founders.identifier2, "About"));
  menuItems
      .add(menuItem(app, "album", Album.identifier, "Album", Icons.photo));
  MenuDefModel menu = MenuDefModel(
      documentID: defaults.homeMenuID(theApp.documentID),
      appId: minkeyAppId,
      name: "Main Menu",
      menuItems: menuItems);
  return menu;
}