ModBaseLayout constructor

const ModBaseLayout({
  1. Key? key,
  2. ModBaseLayoutController? controller,
  3. required String title,
  4. required Widget? body,
  5. List<String>? claims,
  6. List<MenuGroup>? menuGroups,
  7. List<ModuleMenu>? moduleMenuGroups,
  8. UserProfile? userProfile,
  9. List<Widget>? appBarActions,
  10. bool showDefaultActions = true,
  11. Widget? sidebarHeader,
  12. Widget? sidebarFooter,
  13. Widget? footer,
  14. Border? footerBorder,
  15. Color? sidebarBackgroundColor,
  16. Color? sidebarSelectedColor,
  17. Color? sidebarUnselectedColor,
  18. double footerHeight = 50.0,
  19. Color? footerBackgroundColor,
  20. Widget? drawerHeader,
  21. Color? lightBackgroundColor,
  22. Color? darkBackgroundColor,
  23. Color? lightForegroundColor,
  24. Color? darkForegroundColor,
  25. bool showAppBar = true,
  26. Color? drawerBackgroundColor,
  27. String? loginRoute,
  28. VoidCallback? onNoAccessRedirect,
  29. bool disableClaimsValidation = false,
  30. Color? headerMenuIconColor,
  31. Color? headerTitleColor,
  32. Color? headerThemeIconColor,
  33. Color? headerProfileColor,
  34. Color? headerLanguageIconColor,
  35. 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');