CustomAppBar constructor

const CustomAppBar({
  1. Key? key,
  2. String? title,
  3. Widget? titleWidget,
  4. double height = 60.0,
  5. bool centerTitle = true,
  6. double elevation = 0,
  7. Color? shadowColor,
  8. Color? surfaceTintColor,
  9. Widget? leading,
  10. double? leadingWidth,
  11. bool showBackButton = true,
  12. IconData backIcon = Icons.arrow_back_ios,
  13. double backIconSize = 24,
  14. Color? backIconColor,
  15. VoidCallback? onBack,
  16. bool? automaticallyImplyLeading,
  17. List<Widget>? actions,
  18. double actionsIconThemePadding = 0,
  19. Color? backgroundColor,
  20. List<Color>? gradientColors,
  21. AlignmentGeometry gradientBegin = Alignment.topLeft,
  22. AlignmentGeometry gradientEnd = Alignment.bottomRight,
  23. List<double>? gradientStops,
  24. BoxDecoration? flexibleSpaceDecoration,
  25. bool transparent = false,
  26. Color? titleColor,
  27. double titleFontSize = 20.0,
  28. FontWeight titleFontWeight = FontWeight.bold,
  29. TextStyle? titleTextStyle,
  30. PreferredSizeWidget? bottom,
  31. SystemUiOverlayStyle? systemOverlayStyle,
  32. Color? foregroundColor,
  33. bool forceMaterialTransparency = false,
  34. ScrollNotificationPredicate? notificationPredicate,
  35. Clip clipBehavior = Clip.none,
  36. bool primary = true,
  37. bool excludeHeaderSemantics = false,
  38. Widget? flexibleSpace,
  39. double toolbarOpacity = 1.0,
  40. double bottomOpacity = 1.0,
  41. double? toolbarHeight,
  42. ShapeBorder? shape,
  43. IconThemeData? iconTheme,
  44. IconThemeData? actionsIconTheme,
  45. TextStyle? toolbarTextStyle,
  46. String? semanticLabel,
  47. 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,
});