AppBarThemeData constructor
- Color? backgroundColor,
- Color? foregroundColor,
- @Deprecated('Use backgroundColor instead. ' 'This feature was deprecated after v3.33.0-0.2.pre.') Color? color,
- double? elevation,
- double? scrolledUnderElevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- bool? centerTitle,
- double? titleSpacing,
- double? leadingWidth,
- double? toolbarHeight,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
- EdgeInsetsGeometry? actionsPadding,
Creates an app bar theme that can be used with ThemeData.appBarTheme.
Implementation
const AppBarThemeData({
this.backgroundColor,
this.foregroundColor,
@Deprecated(
'Use backgroundColor instead. '
'This feature was deprecated after v3.33.0-0.2.pre.',
)
Color? color,
this.elevation,
this.scrolledUnderElevation,
this.shadowColor,
this.surfaceTintColor,
this.shape,
this.iconTheme,
this.actionsIconTheme,
this.centerTitle,
this.titleSpacing,
this.leadingWidth,
this.toolbarHeight,
this.toolbarTextStyle,
this.titleTextStyle,
this.systemOverlayStyle,
this.actionsPadding,
}) : assert(
color == null || backgroundColor == null,
'The color and backgroundColor parameters mean the same thing. Only specify one.',
);