MobNavBar constructor
MobNavBar({
- Key? key,
- required Widget title,
- double? height,
- PageIndicator? pageIndicator,
- double? indicatorLineThickness,
- NavItemPosition? itemPosition,
- String? titleText,
- BoxDecoration? customDecoration,
- Widget? drawerHeader,
- Widget? drawerBody,
- required Widget body,
- NavDrawerMode? drawerMode,
- Color? backgroundColor,
- Widget? fab,
- double? elevation,
- bool? extendBodyBehindAppBar,
- bool? showFab,
- Color? appBarColor,
- Color? drawerColor,
- double? MAX_PAGE_WIDTH,
- Widget? leading,
- List<
Widget> ? actions,
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
);