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. Color? shadowColor,
  11. Color? surfaceTintColor,
  12. ShapeBorder? shape,
  13. Color? backgroundColor,
  14. Color? foregroundColor,
  15. IconThemeData? iconTheme,
  16. IconThemeData? actionsIconTheme,
  17. bool primary = true,
  18. bool? centerTitle,
  19. bool excludeHeaderSemantics = false,
  20. double? titleSpacing,
  21. double toolbarOpacity = 1.0,
  22. double bottomOpacity = 1.0,
  23. double? toolbarHeight,
  24. double? leadingWidth,
  25. TextStyle? toolbarTextStyle,
  26. TextStyle? titleTextStyle,
  27. SystemUiOverlayStyle? systemOverlayStyle,
})

Implementation

MorphingAppBar({
  super.key,
  this.heroTag = 'MorphingAppBar',
  this.leading,
  this.automaticallyImplyLeading = true,
  this.title,
  this.actions,
  this.flexibleSpace,
  this.bottom,
  this.elevation,
  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,
})  : assert(elevation == null || elevation >= 0.0),
      preferredSize = Size.fromHeight(
        toolbarHeight ?? kToolbarHeight + (bottom?.preferredSize.height ?? 0),
      );