StacMaterialBannerThemeData class
A Stac model representing Flutter's MaterialBannerThemeData.
Defines the theme for material banners, including colors, elevation, text styles, and layout properties.
{@tool snippet} Dart Example:
StacMaterialBannerThemeData(
backgroundColor: '#FFFFFF',
elevation: 3.0,
contentTextStyle: StacTextStyle(...),
)
{@end-tool}
{@tool snippet} JSON Example:
{
"backgroundColor": "#FFFFFF",
"elevation": 3.0,
"shadowColor": "#000000",
"surfaceTintColor": "#000000",
"dividerColor": "#BDBDBD",
"padding": {"all": 16.0}
}
{@end-tool}
- Implemented types
- Available extensions
- Annotations
-
- @JsonSerializable.new()
Constructors
- StacMaterialBannerThemeData({String? backgroundColor, String? surfaceTintColor, String? shadowColor, String? dividerColor, StacTextStyle? contentTextStyle, double? elevation, StacEdgeInsets? padding, StacEdgeInsets? leadingPadding})
-
Creates a StacMaterialBannerThemeData with the given properties.
const
-
StacMaterialBannerThemeData.fromJson(Map<
String, dynamic> json) -
Creates a StacMaterialBannerThemeData from JSON.
factory
Properties
- backgroundColor → String?
-
The background color of the material banner.
final
- contentTextStyle → StacTextStyle?
-
The text style for the material banner's content.
final
- dividerColor → String?
-
The color of the divider in the material banner.
final
- elevation → double?
-
The z-coordinate at which to place this material banner relative to its parent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- leadingPadding → StacEdgeInsets?
-
The padding around the material banner's leading widget.
final
- padding → StacEdgeInsets?
-
The padding around the material banner's content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → String?
-
The color of the shadow below the material banner.
final
- surfaceTintColor → String?
-
The color used to tint the surface of this material banner.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
BuildContext context) → MaterialBannerThemeData -
Available on StacMaterialBannerThemeData, provided by the StacMaterialBannerThemeDataParser extension
-
toJson(
) → Map< String, dynamic> -
Converts this material banner theme to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited