MorphingAppBar constructor

MorphingAppBar({
  1. Key? key,
  2. Object heroTag = 'MorphingAppBar',
  3. Widget? leading,
  4. bool automaticallyImplyLeading = true,
  5. Widget? title,
  6. List<Widget>? actions,
  7. Widget? flexibleSpace,
  8. PreferredSizeWidget? bottom,
  9. double? elevation,
  10. double? scrolledUnderElevation,
  11. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  12. Color? shadowColor,
  13. Color? surfaceTintColor,
  14. ShapeBorder? shape,
  15. Color? backgroundColor,
  16. Color? foregroundColor,
  17. IconThemeData? iconTheme,
  18. IconThemeData? actionsIconTheme,
  19. bool primary = true,
  20. bool? centerTitle,
  21. bool excludeHeaderSemantics = false,
  22. double? titleSpacing,
  23. double toolbarOpacity = 1.0,
  24. double bottomOpacity = 1.0,
  25. double? toolbarHeight,
  26. double? leadingWidth,
  27. TextStyle? toolbarTextStyle,
  28. TextStyle? titleTextStyle,
  29. SystemUiOverlayStyle? systemOverlayStyle,
  30. bool forceMaterialTransparency = false,
  31. Clip? clipBehavior,
})

Implementation

MorphingAppBar({
  super.key,
  this.heroTag = 'MorphingAppBar',
  this.leading,
  this.automaticallyImplyLeading = true,
  this.title,
  this.actions,
  this.flexibleSpace,
  this.bottom,
  this.elevation,
  this.scrolledUnderElevation,
  this.notificationPredicate = defaultScrollNotificationPredicate,
  this.shadowColor,
  this.surfaceTintColor,
  this.shape,
  this.backgroundColor,
  this.foregroundColor,
  this.iconTheme,
  this.actionsIconTheme,
  this.primary = true,
  this.centerTitle,
  this.excludeHeaderSemantics = false,
  this.titleSpacing,
  this.toolbarOpacity = 1.0,
  this.bottomOpacity = 1.0,
  this.toolbarHeight,
  this.leadingWidth,
  this.toolbarTextStyle,
  this.titleTextStyle,
  this.systemOverlayStyle,
  this.forceMaterialTransparency = false,
  this.clipBehavior,
})  : assert(elevation == null || elevation >= 0.0),
      preferredSize = Size.fromHeight(
        toolbarHeight ?? kToolbarHeight + (bottom?.preferredSize.height ?? 0),
      );