RuiScaffold constructor

const RuiScaffold({
  1. Key? key,
  2. required String appName,
  3. double minWidth = 800,
  4. double minHeight = 600,
  5. required Widget body,
  6. double? leftPanelMinWidth = 120,
  7. double? leftPanelMaxWidth = 400,
  8. Widget? leftMainWidget,
  9. List<RuiMenuItem>? leftMenuButtons,
  10. Widget? leftFooterWidget,
  11. Widget? headerMainPanel,
  12. Widget? headerToolsPanel,
  13. Widget? headerUserPanel,
  14. Widget? rightPanel,
  15. Widget? footerPanel,
  16. List<PopupMenuEntry>? rightMenuButtons,
  17. dynamic onRightPanelToggle(
    1. bool
    )?,
  18. String? initialRoute,
  19. Map<String, WidgetBuilder>? routes = const <String, WidgetBuilder>{},
  20. VoidCallback? onLogoPressed,
  21. dynamic onCheckUserLoginStatus<bool>(
    1. String token
    )?,
  22. RouteFactory onGenerateRoute(
    1. RouteSettings
    )?,
  23. dynamic onLeftPanelToggle(
    1. bool
    )?,
})

Implementation

const RuiScaffold({
  super.key,
  this.logo,
  required this.appName,
  this.minWidth = 800,
  this.minHeight = 600,
  required this.body,
  this.leftPanelMinWidth = 120,
  this.leftPanelMaxWidth = 400,
  this.leftMainWidget,
  this.leftMenuButtons,
  this.leftFooterWidget,
  this.headerMainPanel,
  this.headerToolsPanel,
  this.headerUserPanel,
  this.rightPanel,
  this.footerPanel,
  this.rightMenuButtons,
  this.onRightPanelToggle,
  this.initialRoute,
  this.routes = const <String, WidgetBuilder>{},
  this.onLogoPressed,
  this.onCheckUserLoginStatus,
  this.onGenerateRoute,
  this.onLeftPanelToggle,
});