AppBar constructor

const AppBar({
  1. Key? key,
  2. dynamic title,
  3. dynamic subtitle,
  4. List<Widget>? actions,
  5. Widget? leading,
  6. bool automaticallyImplyLeading = true,
  7. bool centerTitle = false,
  8. Color? backgroundColor,
  9. Color? foregroundColor,
  10. double elevation = 0,
  11. bool pinned = true,
  12. double titleSpacing = AppSpacing.sm,
  13. double? toolbarHeight,
  14. PreferredSizeWidget? bottom,
  15. VoidCallback? onBack,
  16. double scrolledUnderElevation = 2,
  17. TextStyle? titleStyle,
  18. IconData? backIcon,
})

Implementation

const AppBar({
  super.key,
  this.title,
  this.subtitle,
  this.actions,
  this.leading,
  this.automaticallyImplyLeading = true,
  this.centerTitle = false,
  this.backgroundColor,
  this.foregroundColor,
  this.elevation = 0,
  this.pinned = true,
  this.titleSpacing = AppSpacing.sm,
  this.toolbarHeight,
  this.bottom,
  this.onBack,
  this.scrolledUnderElevation = 2,
  this.titleStyle,
  this.backIcon,
});