StacDialogThemeData class
A Stac model representing Flutter's DialogThemeData.
Defines the theme for dialogs.
{@tool snippet} Dart Example:
StacDialogThemeData(
backgroundColor: '#FFFFFF',
elevation: 24.0,
shape: StacBorder(...),
titleTextStyle: StacTextStyle(...),
)
{@end-tool}
{@tool snippet} JSON Example:
{
"backgroundColor": "#FFFFFF",
"elevation": 24.0,
"shadowColor": "#000000",
"surfaceTintColor": "#FF0000",
"alignment": {...},
"iconColor": "#2196F3",
"barrierColor": "#80000000",
"insetPadding": {...},
"clipBehavior": "antiAlias"
}
{@end-tool}
- Implemented types
- Annotations
-
- @JsonSerializable.new()
Constructors
- StacDialogThemeData({String? backgroundColor, double? elevation, String? shadowColor, String? surfaceTintColor, StacBorder? shape, StacAlignmentGeometry? alignment, String? iconColor, StacTextStyle? titleTextStyle, StacTextStyle? contentTextStyle, StacEdgeInsets? actionsPadding, String? barrierColor, StacEdgeInsets? insetPadding, StacClip? clipBehavior, StacBoxConstraints? constraints})
-
Creates a StacDialogThemeData with the given properties.
const
-
StacDialogThemeData.fromJson(Map<
String, dynamic> json) -
Creates a StacDialogThemeData from JSON.
factory
Properties
- actionsPadding → StacEdgeInsets?
-
Overrides the default value for AlertDialog.actionsPadding.
final
- alignment → StacAlignmentGeometry?
-
Overrides the default value for Dialog.alignment.
final
- backgroundColor → String?
-
Overrides the default value for Dialog.backgroundColor.
final
- barrierColor → String?
-
Overrides the default value for barrierColor in showDialog.
final
- clipBehavior → StacClip?
-
Overrides the default value of Dialog.clipBehavior.
final
- constraints → StacBoxConstraints?
-
Constrains the size of the Dialog.
final
- contentTextStyle → StacTextStyle?
-
Overrides the default value for DefaultTextStyle for SimpleDialog.children and
AlertDialog.content.
final
- elevation → double?
-
Overrides the default value for Dialog.elevation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → String?
-
Used to configure the IconTheme for the AlertDialog.icon widget.
final
- insetPadding → StacEdgeInsets?
-
Overrides the default value for Dialog.insetPadding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → String?
-
Overrides the default value for Dialog.shadowColor.
final
- shape → StacBorder?
-
Overrides the default value for Dialog.shape.
final
- surfaceTintColor → String?
-
Overrides the default value for Dialog.surfaceTintColor.
final
- titleTextStyle → StacTextStyle?
-
Overrides the default value for DefaultTextStyle for SimpleDialog.title and
AlertDialog.title.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this dialog theme to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited