AppNavigationBar constructor
AppNavigationBar({
- Key? key,
- Widget? title,
- bool automaticallyImplyLeading = true,
- PreferredSizeWidget? bottom,
- List<
Widget> ? actions, - bool centerTitle = true,
- double titleSpacing = NavigationToolbar.kMiddleSpacing,
- VoidCallback? onBack,
- AppBarBackType? leadingType,
- Widget? leading,
- Brightness brightness = Brightness.dark,
- Color? backgroundColor,
- double? elevation,
Implementation
AppNavigationBar({
super.key,
super.title,
super.automaticallyImplyLeading,
super.bottom,
super.actions,
bool super.centerTitle = true,
double super.titleSpacing = NavigationToolbar.kMiddleSpacing,
VoidCallback? onBack,
AppBarBackType? leadingType,
Widget? leading,
Brightness brightness = Brightness.dark,
Color? backgroundColor,
double? elevation,
}) : super(
backgroundColor: backgroundColor ??
AppBase.shared.theme.navigationBar.backgroundColor,
leading: leading ??
(leadingType == AppBarBackType.none
? null
: AppBarBack(
onBack: onBack,
backType: (leadingType ?? AppBarBackType.back),
brightness: brightness,
)),
elevation: elevation ?? 0,
);