BasicAppBar constructor

BasicAppBar({
  1. Key? key,
  2. Widget? leading,
  3. bool automaticallyImplyLeading = false,
  4. Widget? title,
  5. List<Widget>? actions,
  6. Widget? flexibleSpace,
  7. PreferredSizeWidget? bottom,
  8. double? elevation = 0,
  9. Color? shadowColor = Colors.transparent,
  10. ShapeBorder? shape,
  11. Color? backgroundColor = Colors.transparent,
  12. Color? foregroundColor = Colors.transparent,
  13. Brightness? brightness,
  14. IconThemeData? iconTheme = const IconThemeData(color: Colors.black),
  15. IconThemeData? actionsIconTheme = const IconThemeData(color: Colors.black),
  16. TextTheme? textTheme,
  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. bool? backwardsCompatibility,
  26. TextStyle? toolbarTextStyle,
  27. TextStyle? titleTextStyle,
  28. SystemUiOverlayStyle? systemOverlayStyle,
})

Implementation

BasicAppBar({
  Key? key,
  this.leading,
  this.automaticallyImplyLeading = false,
  this.title,
  this.actions,
  this.flexibleSpace,
  this.bottom,
  this.elevation = 0,
  this.shadowColor = Colors.transparent,
  this.shape,
  this.backgroundColor = Colors.transparent,
  this.foregroundColor = Colors.transparent,
  this.brightness,
  this.iconTheme = const IconThemeData(color: Colors.black),
  this.actionsIconTheme = const IconThemeData(color: Colors.black),
  this.textTheme,
  this.primary = true,
  this.centerTitle,
  this.excludeHeaderSemantics = false,
  this.titleSpacing,
  this.toolbarOpacity = 1.0,
  this.bottomOpacity = 1.0,
  this.toolbarHeight,
  this.leadingWidth,
  this.backwardsCompatibility,
  this.toolbarTextStyle,
  this.titleTextStyle,
  this.systemOverlayStyle,
})  : assert(elevation == null || elevation >= 0.0),
      preferredSize = Size.fromHeight(toolbarHeight ??
          kToolbarHeight + (bottom?.preferredSize.height ?? 0.0)),
      super(key: key);