BackdropAppBar constructor

BackdropAppBar({
  1. Key? key,
  2. Widget? leading,
  3. bool automaticallyImplyLeading = true,
  4. Widget? title,
  5. List<Widget>? actions,
  6. Widget? flexibleSpace,
  7. PreferredSizeWidget? bottom,
  8. double? elevation = 0.0,
  9. Color? shadowColor,
  10. ShapeBorder? shape,
  11. Color? backgroundColor,
  12. Color? foregroundColor,
  13. IconThemeData? iconTheme,
  14. IconThemeData? actionsIconTheme,
  15. bool primary = true,
  16. bool? centerTitle,
  17. bool excludeHeaderSemantics = false,
  18. double? titleSpacing,
  19. double toolbarOpacity = 1.0,
  20. double bottomOpacity = 1.0,
  21. double? toolbarHeight,
  22. double? leadingWidth,
  23. TextStyle? toolbarTextStyle,
  24. TextStyle? titleTextStyle,
  25. SystemUiOverlayStyle? systemOverlayStyle,
})

Creates a backdrop app bar.

For more information see AppBar.

Implementation

BackdropAppBar({
  Key? key,
  this.leading,
  this.automaticallyImplyLeading = true,
  this.title,
  this.actions,
  this.flexibleSpace,
  this.bottom,
  this.elevation = 0.0,
  this.shadowColor,
  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)),
      super(key: key);