NiceAppShell constructor

const NiceAppShell({
  1. Key? key,
  2. required List<NiceNavItem> items,
  3. required String currentPath,
  4. required ValueChanged<String> onNavigate,
  5. required Widget child,
  6. String? title,
  7. Widget? titleWidget,
  8. List<Widget> actions = const [],
  9. Widget? footer,
  10. Widget? userMenu,
  11. double sidebarWidth = 240,
  12. double railWidth = 72,
  13. bool showLabelsOnRail = false,
  14. bool enableDrawerOnMobile = true,
  15. PreferredSizeWidget? appBar,
})

Implementation

const NiceAppShell({
  super.key,
  required this.items,
  required this.currentPath,
  required this.onNavigate,
  required this.child,
  this.title,
  this.titleWidget,
  this.logo,
  this.actions = const [],
  this.footer,
  this.userMenu,
  this.sidebarWidth = 240,
  this.railWidth = 72,
  this.showLabelsOnRail = false,
  this.enableDrawerOnMobile = true,
  this.appBar,
});