MobNavBar constructor

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

Implementation

MobNavBar({
  Key? key,
  required Widget title,
  double? height,
  PageIndicator? pageIndicator,
  double? indicatorLineThickness,
  AnimationType? navItemAnimation,
  NavItemPosition? itemPosition,
  String? titleText,
  BoxDecoration? customDecoration,
  Widget? drawerHeader,
  Widget? drawerBody,
  Widget? drawerFooter,
  required Widget body,
  double? navItemSpacing,
  NavDrawerMode? drawerMode,
  Color? backgroundColor,
  Widget? fab,
  double? elevation,
  bool? extendBodyBehindAppBar,
  TextStyle? navTextStyle,
  bool? showFab,
  Color? appBarColor,
  Color? drawerColor,
  double? MAX_PAGE_WIDTH,
  Widget? leading,
  List<Widget>? actions,
  required List<NavItem> navItems,

}) : super(
  key: key,
    deviceType:DeviceType.mobile,
  navItemAnimation: navItemAnimation,
  title: title,
  body: body,
  elevation: elevation,
  extendBodyBehindAppBar: extendBodyBehindAppBar,
  fab: fab,
    customDecoration: customDecoration,
    drawerBody: drawerBody,
    drawerFooter: drawerFooter,
    drawerHeader: drawerHeader,
    indicatorLineThickness: indicatorLineThickness,
    pageIndicator: pageIndicator,
  navTextStyle: navTextStyle,
  navItemSpacing: navItemSpacing??10,
  showFab: showFab??false,
  height: height??kToolbarHeight,
  MAX_PAGE_WIDTH: MAX_PAGE_WIDTH??1140,
  items: navItems,
  itemsPosition: itemPosition??NavItemPosition.right,
  enableDrawer: true,
  drawerMode: drawerMode??NavDrawerMode.left,
  titleText: titleText,
    appBarColor: appBarColor,
    drawerColor: drawerColor,
  backgroundColor: backgroundColor,
  actions: actions??[],
  leading: leading
);