AppBar constructor
const
AppBar({
- Key? key,
- dynamic title,
- dynamic subtitle,
- List<
Widget> ? actions, - Widget? leading,
- bool automaticallyImplyLeading = true,
- bool centerTitle = false,
- Color? backgroundColor,
- Color? foregroundColor,
- double elevation = 0,
- bool pinned = true,
- double titleSpacing = AppSpacing.sm,
- double? toolbarHeight,
- PreferredSizeWidget? bottom,
- VoidCallback? onBack,
- double scrolledUnderElevation = 2,
- TextStyle? titleStyle,
- 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,
});