ModBaseLayout constructor
const
ModBaseLayout({
- Key? key,
- required String title,
- Widget? logo,
- required Widget? body,
- List<
String> ? claims, - List<
ModuleMenu> ? moduleMenuGroups, - UserProfile? userProfile,
- List<
Widget> ? appBarActions, - bool showDefaultActions = true,
- Widget? sidebarHeader,
- Color? sidebarBackgroundColor,
- Color? sidebarSelectedColor,
- Color? sidebarUnselectedColor,
- Widget? drawerHeader,
- Color? lightBackgroundColor,
- Color? darkBackgroundColor,
- Color? lightForegroundColor,
- Color? darkForegroundColor,
- bool showAppBar = true,
- Color? drawerBackgroundColor,
- String? loginRoute,
- VoidCallback? onNoAccessRedirect,
- bool disableClaimsValidation = false,
Implementation
const ModBaseLayout({
super.key,
required this.title,
this.logo,
required this.body,
this.claims,
this.menuGroups,
this.moduleMenuGroups,
this.userProfile,
this.appBarActions,
this.showDefaultActions = true,
this.sidebarHeader,
this.sidebarFooter,
this.footer,
this.footerBorder,
this.sidebarBackgroundColor,
this.sidebarSelectedColor,
this.sidebarUnselectedColor,
this.footerHeight = 50.0,
this.drawerHeader,
this.lightBackgroundColor,
this.darkBackgroundColor,
this.lightForegroundColor,
this.darkForegroundColor,
this.showAppBar = true,
this.drawerBackgroundColor,
this.loginRoute,
this.onNoAccessRedirect,
this.disableClaimsValidation = false,
}) : assert(menuGroups != null || moduleMenuGroups != null,
'Pelo menos um de menuGroups ou moduleMenuGroups deve ser fornecido');