AdaptiveAppBar constructor

AdaptiveAppBar({
  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,
  9. Color? shadowColor,
  10. ShapeBorder? shape,
  11. Color? backgroundColor,
  12. IconThemeData? iconThemeData,
  13. IconThemeData? actionsIconThemeData,
  14. bool primary = true,
  15. bool? centerTitle,
  16. bool excludeHeaderSemantics = false,
  17. double titleSpacing = NavigationToolbar.kMiddleSpacing,
  18. double toolbarOpacity = 1.0,
  19. double bottomOpacity = 1.0,
  20. double? toolbarHeight,
  21. double? leadingWidth,
  22. TextStyle? toolbarTextStyle,
  23. TextStyle? titleTextStyle,
  24. SystemUiOverlayStyle? systemOverlayStyle,
})

Implementation

AdaptiveAppBar({
  super.key,
  this.leading,
  this.automaticallyImplyLeading = true,
  this.title,
  this.actions,
  this.flexibleSpace,
  this.bottom,
  this.elevation,
  this.shadowColor,
  this.shape,
  this.backgroundColor,
  this.iconThemeData,
  this.actionsIconThemeData,
  this.primary = true,
  this.centerTitle,
  this.excludeHeaderSemantics = false,
  this.titleSpacing = NavigationToolbar.kMiddleSpacing,
  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.0));