NavBar constructor

NavBar({
  1. Key? key,
  2. required DeviceType deviceType,
  3. required Widget title,
  4. Color? appBarColor,
  5. Color? drawerColor,
  6. AnimationType? navItemAnimation,
  7. double? elevation,
  8. bool? extendBodyBehindAppBar,
  9. double? height = kToolbarHeight,
  10. Widget? drawerFooter,
  11. Widget? drawerHeader,
  12. Widget? drawerBody,
  13. PageIndicator? pageIndicator,
  14. double? indicatorLineThickness,
  15. required Widget body,
  16. BoxDecoration? customDecoration,
  17. TextStyle? navTextStyle,
  18. Widget? fab,
  19. double navItemSpacing = 10,
  20. bool showFab = false,
  21. bool? enableDrawer = false,
  22. double MAX_PAGE_WIDTH = 1140,
  23. NavDrawerMode? drawerMode = NavDrawerMode.right,
  24. NavItemPosition? itemsPosition = NavItemPosition.right,
  25. String? titleText,
  26. Color? backgroundColor,
  27. required List<NavItem> items,
  28. List<Widget>? actions,
  29. Widget? leading,
})

Implementation

NavBar(
    {Key? key,
      required this.deviceType,
    required this.title,
      this.appBarColor,
      this.drawerColor,
    this.navItemAnimation,
    this.elevation,
    this.extendBodyBehindAppBar,
    this.height = kToolbarHeight,
    this.drawerFooter,
    this.drawerHeader,
    this.drawerBody,
    this.pageIndicator,
    this.indicatorLineThickness,
    required this.body,
    this.customDecoration,
    this.navTextStyle,
    this.fab,
    this.navItemSpacing = 10,
    this.showFab = false,
    this.enableDrawer = false,
    this.MAX_PAGE_WIDTH = 1140,
    this.drawerMode = NavDrawerMode.right,
    this.itemsPosition = NavItemPosition.right,
    this.titleText,
    this.backgroundColor,
    required this.items,
    this.actions,
    this.leading})
    : super(key: key, child: title, preferredSize: Size.fromHeight(height!));