NavBar constructor
NavBar({
- Key? key,
- required DeviceType deviceType,
- required Widget title,
- Color? appBarColor,
- Color? drawerColor,
- double? elevation,
- bool? extendBodyBehindAppBar,
- double? height = kToolbarHeight,
- Widget? drawerHeader,
- Widget? drawerBody,
- PageIndicator? pageIndicator,
- double? indicatorLineThickness,
- required Widget body,
- BoxDecoration? customDecoration,
- Widget? fab,
- bool showFab = false,
- bool? enableDrawer = false,
- double MAX_PAGE_WIDTH = 1140,
- NavDrawerMode? drawerMode = NavDrawerMode.right,
- NavItemPosition? itemsPosition = NavItemPosition.right,
- String? titleText,
- Color? backgroundColor,
- required List<
NavItem> items, - List<
Widget> ? actions, - 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!));