WowAppBar constructor
WowAppBar({
- Key? key,
- TextStyle? titleTextStyle,
- TextStyle? toolbarTextStyle,
- Color? backgroundColor,
- double? elevation,
- bool? centerTitle,
- double? leadingWidth,
- List<
Widget> ? actions, - PreferredSizeWidget? bottom,
- Widget? flexibleSpace,
- double? toolbarHeight,
- String? title,
- Color? color,
- dynamic onTapBack()?,
- Widget? titleWidget,
- Widget? leading,
- bool hasLeading = true,
Implementation
WowAppBar({
super.key,
super.titleTextStyle,
super.toolbarTextStyle,
super.backgroundColor,
super.elevation,
super.centerTitle,
super.leadingWidth,
super.actions,
super.bottom,
super.flexibleSpace,
super.toolbarHeight,
String? title,
Color? color,
Function()? onTapBack,
Widget? titleWidget,
Widget? leading,
bool hasLeading = true,
}) : super(
leading: hasLeading
? (leading ??
Align(
alignment: Alignment.centerLeft,
child: WowBackButton(
color: color,
onPressed: onTapBack,
),
))
: null,
title: titleWidget ??
WowText(
title,
style: titleTextStyle ?? WowTextStyle.title,
textAlign:
(centerTitle ?? true) ? TextAlign.center : TextAlign.start,
),
automaticallyImplyLeading: false,
);