profileDrawerMenuDef method

  1. @override
MenuDefModel profileDrawerMenuDef()
override

Implementation

@override
MenuDefModel profileDrawerMenuDef() {
  var menuItems = <MenuItemModel>[];
  menuItems.add(
      menuItemManageAccount(app, "my_juuwle", MemberDashboard.identifier));
  menuItems.add(MenuItemModel(
      documentID: 'orders',
      text: 'Your orders',
      description: 'Your orders',
      icon: IconModel(codePoint: 0xe896, fontFamily: 'MaterialIcons'),
      action: GotoPage(app, pageID: OrderOverview.identifier)));
  menuItems.add(menuItemSignOut(app, 'sign_out'));
  var menu = MenuDefModel(
      documentID: defaults.drawerID(theApp.documentID, DrawerType.right),
      appId: juuwleAppId,
      name: 'Drawer Profile Menu',
      menuItems: menuItems);
  return menu;
}