CustomAppBar constructor
const
CustomAppBar({
- Key? key,
- String? title,
- Widget? titleWidget,
- double height = 60.0,
- bool centerTitle = true,
- double elevation = 0,
- Color? shadowColor,
- Color? surfaceTintColor,
- Widget? leading,
- double? leadingWidth,
- bool showBackButton = true,
- IconData backIcon = Icons.arrow_back_ios,
- double backIconSize = 24,
- Color? backIconColor,
- VoidCallback? onBack,
- bool? automaticallyImplyLeading,
- List<
Widget> ? actions, - double actionsIconThemePadding = 0,
- Color? backgroundColor,
- List<
Color> ? gradientColors, - AlignmentGeometry gradientBegin = Alignment.topLeft,
- AlignmentGeometry gradientEnd = Alignment.bottomRight,
- List<
double> ? gradientStops, - BoxDecoration? flexibleSpaceDecoration,
- bool transparent = false,
- Color? titleColor,
- double titleFontSize = 20.0,
- FontWeight titleFontWeight = FontWeight.bold,
- TextStyle? titleTextStyle,
- PreferredSizeWidget? bottom,
- SystemUiOverlayStyle? systemOverlayStyle,
- Color? foregroundColor,
- bool forceMaterialTransparency = false,
- ScrollNotificationPredicate? notificationPredicate,
- Clip clipBehavior = Clip.none,
- bool primary = true,
- bool excludeHeaderSemantics = false,
- Widget? flexibleSpace,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- double? toolbarHeight,
- ShapeBorder? shape,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- TextStyle? toolbarTextStyle,
- String? semanticLabel,
- bool? enableSecurity,
Implementation
const CustomAppBar({
super.key,
this.title,
this.titleWidget,
this.height = 60.0,
this.centerTitle = true,
this.elevation = 0,
this.shadowColor,
this.surfaceTintColor,
this.leading,
this.leadingWidth,
this.showBackButton = true,
this.backIcon = Icons.arrow_back_ios,
this.backIconSize = 24,
this.backIconColor,
this.onBack,
this.automaticallyImplyLeading,
this.actions,
this.actionsIconThemePadding = 0,
this.backgroundColor,
this.gradientColors,
this.gradientBegin = Alignment.topLeft,
this.gradientEnd = Alignment.bottomRight,
this.gradientStops,
this.flexibleSpaceDecoration,
this.transparent = false,
this.titleColor,
this.titleFontSize = 20.0,
this.titleFontWeight = FontWeight.bold,
this.titleTextStyle,
this.bottom,
this.systemOverlayStyle,
this.foregroundColor,
this.forceMaterialTransparency = false,
this.notificationPredicate,
this.clipBehavior = Clip.none,
this.primary = true,
this.excludeHeaderSemantics = false,
this.flexibleSpace,
this.toolbarOpacity = 1.0,
this.bottomOpacity = 1.0,
this.toolbarHeight,
this.shape,
this.iconTheme,
this.actionsIconTheme,
this.toolbarTextStyle,
this.semanticLabel,
this.enableSecurity,
});