homeMenuDef method
MenuDefModel
homeMenuDef(
)
override
Implementation
@override
MenuDefModel homeMenuDef() {
List<MenuItemModel> menuItems = [];
menuItems.add(menuItemHome(app, "1", "welcome"));
menuItems.add(MenuItemModel(
documentID: "2",
text: "Hello World",
description: "Hello World",
icon: IconModel(
codePoint: Icons.flight_takeoff.codePoint,
fontFamily: "MaterialIcons"),
action: GotoPage(app, pageID: "hello_world")));
menuItems.add(MenuItemModel(
documentID: "3",
text: "Advanced",
description: "Advanced",
icon: IconModel(
codePoint: Icons.tour.codePoint, fontFamily: "MaterialIcons"),
action: GotoPage(EliudApp.app, pageID: "advanced")));
menuItems.add(
menuItemAbout(app, "4", Founders.identifier2, Founders.identifier2));
MenuDefModel menu = MenuDefModel(
documentID: defaults.homeMenuID(theApp.documentID),
appId: eliudAppId,
name: "Main Menu",
menuItems: menuItems);
return menu;
}