get static method
SiteNavBar
get({
- DeviceType type = DeviceType.desktop,
- Widget? title,
- double? height,
- Color? appBarColor,
- Color? drawerColor,
- Widget? fab,
- BoxDecoration? customDecoration,
- Widget? drawerHeader,
- Widget? drawerBody,
- double? elevation,
- bool? extendBodyBehindAppBar,
- bool? showFab,
- PageIndicator? pageIndicator,
- double? indicatorLineThickness,
- NavItemPosition? itemPosition,
- String? titleText,
- required Widget body,
- bool? enableDrawer,
- NavDrawerMode? drawerMode,
- Color? backgroundColor,
- double? MAX_PAGE_WIDTH,
- Widget? leading,
- List<
Widget> ? actions,
Implementation
static SiteNavBar get({
DeviceType type = DeviceType.desktop,
Widget? title,
double? height,
Color? appBarColor,
Color? drawerColor,
AnimationType? navItemAnimation,
Widget? fab,
BoxDecoration? customDecoration,
Widget? drawerHeader,
Widget? drawerBody,
double? elevation,
bool? extendBodyBehindAppBar,
Widget? drawerFooter,
TextStyle? navTextStyle,
bool? showFab,
PageIndicator? pageIndicator,
double? indicatorLineThickness,
NavItemPosition? itemPosition,
String? titleText,
required Widget body,
bool? enableDrawer,
NavDrawerMode? drawerMode,
Color? backgroundColor,
double? MAX_PAGE_WIDTH,
Widget? leading,
double? navItemSpacing,
List<Widget>? actions,
List<NavItem>? navItems,
}) {
_navBarInstance ??= SiteNavBar._SiteNavBar(
type: type,
title: title ?? Container(),
enableDrawer: enableDrawer,
body: body,
fab: fab,
elevation: elevation,
extendBodyBehindAppBar: extendBodyBehindAppBar,
customDecoration: customDecoration,
drawerBody: drawerBody,
drawerFooter: drawerFooter,
drawerHeader: drawerHeader,
navTextStyle: navTextStyle,
navItemSpacing: navItemSpacing,
showFab: showFab,
navItemAnimation: navItemAnimation,
indicatorLineThickness: indicatorLineThickness,
pageIndicator: pageIndicator,
MAX_PAGE_WIDTH: MAX_PAGE_WIDTH,
itemsPosition: itemPosition,
drawerMode: drawerMode,
height: height ?? kToolbarHeight,
titleText: titleText,
backgroundColor: backgroundColor,
appBarColor: appBarColor,
drawerColor: drawerColor,
actions: actions ?? [],
items: navItems ?? [],
leading: leading);
return _navBarInstance!;
}