AppBarTheme constructor
- Color? color,
- Color? backgroundColor,
- Color? foregroundColor,
- double? elevation,
- double? scrolledUnderElevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- bool? centerTitle,
- double? titleSpacing,
- double? toolbarHeight,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
Creates a theme that can be used for ThemeData.appBarTheme.
Implementation
const AppBarTheme({
Color? color,
Color? backgroundColor,
this.foregroundColor,
this.elevation,
this.scrolledUnderElevation,
this.shadowColor,
this.surfaceTintColor,
this.shape,
this.iconTheme,
this.actionsIconTheme,
this.centerTitle,
this.titleSpacing,
this.toolbarHeight,
this.toolbarTextStyle,
this.titleTextStyle,
this.systemOverlayStyle,
}) : assert(
color == null || backgroundColor == null,
'The color and backgroundColor parameters mean the same thing. Only specify one.',
),
backgroundColor = backgroundColor ?? color;