ModBaseLayout constructor
const
ModBaseLayout({
- Key? key,
- ModBaseLayoutController? controller,
- 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,
- Color? headerMenuIconColor,
- Color? headerTitleColor,
- Color? headerThemeIconColor,
- Color? headerProfileColor,
- Color? headerLanguageIconColor,
- ChatbotConfig? chatbotConfig,
Implementation
const ModBaseLayout({
super.key,
this.controller,
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.footerBackgroundColor,
this.drawerHeader,
this.lightBackgroundColor,
this.darkBackgroundColor,
this.lightForegroundColor,
this.darkForegroundColor,
this.showAppBar = true,
this.drawerBackgroundColor,
this.loginRoute,
this.onNoAccessRedirect,
this.disableClaimsValidation = false,
this.headerMenuIconColor,
this.headerTitleColor,
this.headerThemeIconColor,
this.headerProfileColor,
this.headerLanguageIconColor,
this.chatbotConfig,
}) : assert(
controller != null ||
menuGroups != null ||
moduleMenuGroups != null,
'Pelo menos um de controller, menuGroups ou moduleMenuGroups deve ser fornecido');