DefaultNavBar constructor

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

Implementation

DefaultNavBar(
    {Key? key,
    required Widget title,
    bool? enableDrawer,
    AnimationType? navItemAnimation,
    PageIndicator? pageIndicator,
    double? indicatorLineThickness,
    double? height,
    NavItemPosition? itemPosition,
    double? navItemSpacing,
    TextStyle? navTextStyle,
    String? titleText,
    double? elevation,
    bool? extendBodyBehindAppBar,
    NavDrawerMode? drawerMode,
    Widget? fab,
    bool? showFab,
    BoxDecoration? customDecoration,
    Widget? drawerHeader,
    Widget? drawerBody,
    Widget? drawerFooter,
    Color? backgroundColor,
    Color? appBarColor,
    Color? drawerColor,
    required Widget body,
    double? MAX_PAGE_WIDTH,
    Widget? leading,
    required List<NavItem> items,
    List<Widget>? actions})
    : super(
    deviceType:DeviceType.desktop,
          key: key,
          appBarColor: appBarColor,
          drawerColor: drawerColor,
          navItemAnimation: navItemAnimation,
          fab: fab,
          elevation: elevation,
          extendBodyBehindAppBar: extendBodyBehindAppBar,
          indicatorLineThickness: indicatorLineThickness,
          pageIndicator: pageIndicator,
          navItemSpacing: navItemSpacing ?? 10,
          showFab: showFab ?? false,
          body: body,
          customDecoration: customDecoration,
          drawerBody: drawerBody,
          drawerFooter: drawerFooter,
          drawerHeader: drawerHeader,
          enableDrawer: enableDrawer ?? false,
          navTextStyle: navTextStyle,
          title: title,
          MAX_PAGE_WIDTH: MAX_PAGE_WIDTH ?? 1140,
          itemsPosition: itemPosition ?? NavItemPosition.right,
          drawerMode: drawerMode ?? NavDrawerMode.left,
          height: height ?? kToolbarHeight,
          titleText: titleText,
          backgroundColor: backgroundColor,
          actions: actions ?? [],
          items: items,
          leading: leading);