SmoothAppBar constructor

SmoothAppBar({
  1. Widget? leading,
  2. bool automaticallyImplyLeading = true,
  3. Widget? actionModeTitle,
  4. Widget? actionModeSubTitle,
  5. Widget? title,
  6. Widget? subTitle,
  7. bool animateActionMode = false,
  8. List<Widget>? actionModeActions,
  9. List<Widget>? actions,
  10. Widget? flexibleSpace,
  11. PreferredSizeWidget? bottom,
  12. double elevation = 1.0,
  13. double? scrolledUnderElevation = 0.0,
  14. ScrollNotificationPredicate? notificationPredicate,
  15. Color? shadowColor,
  16. Color? elevationColor,
  17. Color? backgroundColor,
  18. Color? foregroundColor,
  19. IconThemeData? iconTheme,
  20. IconThemeData? actionsIconTheme,
  21. bool primary = true,
  22. bool? centerTitle,
  23. bool excludeHeaderSemantics = false,
  24. double? titleSpacing,
  25. ShapeBorder? shape,
  26. double toolbarOpacity = 1.0,
  27. double bottomOpacity = 1.0,
  28. double? toolbarHeight,
  29. double? leadingWidth,
  30. TextStyle? toolbarTextStyle,
  31. TextStyle? titleTextStyle,
  32. SystemUiOverlayStyle? systemOverlayStyle,
  33. bool actionMode = false,
  34. String? actionModeCloseTooltip,
  35. VoidCallback? onLeaveActionMode,
  36. bool? ignoreSemanticsForSubtitle = false,
  37. bool forceMaterialTransparency = false,
  38. Clip? clipBehavior,
  39. Key? key,
})

Implementation

SmoothAppBar({
  this.leading,
  this.automaticallyImplyLeading = true,
  this.actionModeTitle,
  this.actionModeSubTitle,
  this.title,
  this.subTitle,
  this.animateActionMode = false,
  this.actionModeActions,
  this.actions,
  this.flexibleSpace,
  this.bottom,
  this.elevation = 1.0,
  this.scrolledUnderElevation = 0.0,
  this.notificationPredicate,
  this.shadowColor,
  this.elevationColor,
  this.backgroundColor,
  this.foregroundColor,
  this.iconTheme,
  this.actionsIconTheme,
  this.primary = true,
  this.centerTitle,
  this.excludeHeaderSemantics = false,
  this.titleSpacing,
  this.shape,
  this.toolbarOpacity = 1.0,
  this.bottomOpacity = 1.0,
  this.toolbarHeight,
  this.leadingWidth,
  this.toolbarTextStyle,
  this.titleTextStyle,
  this.systemOverlayStyle,
  this.actionMode = false,
  this.actionModeCloseTooltip,
  this.onLeaveActionMode,
  this.ignoreSemanticsForSubtitle = false,
  this.forceMaterialTransparency = false,
  this.clipBehavior,
  super.key,
}) : assert(!actionMode || actionModeTitle != null),
     assert(
       elevationColor == null || elevation >= 0.0,
       'elevationColor requires a valid elevation',
     ),
     preferredSize = _PreferredAppBarSize(
       toolbarHeight,
       bottom?.preferredSize.height,
     );