ModBaseLayout constructor

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