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