AlertStyle class
The style to be applied to alert widget
- Inheritance
-
- Object
- SheetStyle
- AlertStyle
- Annotations
Constructors
- AlertStyle({SheetVariant? variant, SheetSeverity? severity, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, Color? iconColor, double? iconOpacity, double? iconSize})
-
Create a raw alert's style
const
- AlertStyle.filled({Color? color, SheetSeverity? severity, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle = BorderStyle.none, Color? iconColor, double? iconOpacity, double? iconSize})
-
Create AlertStyle with default value for filled style.
const
- AlertStyle.from(AlertStyle? other)
- Create a alert's style from another style
- AlertStyle.outlined({Color? color, SheetSeverity? severity, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle = BorderStyle.solid, Color? iconColor, double? iconOpacity, double? iconSize})
-
Create AlertStyle with default value for outlined style.
const
- AlertStyle.tonal({Color? color, SheetSeverity? severity, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle = BorderStyle.none, Color? iconColor, double? iconOpacity, double? iconSize})
-
Create AlertStyle with default value for toned style.
const
Properties
- alignment → Alignment?
-
Align the
child
within the sheet.finalinherited - backgroundAlpha → int?
-
Alpha to be apply to backgroundColor.
finalinherited
- backgroundColor → Color?
-
Color to be used for the sheet's background.
finalinherited
- backgroundOpacity → double?
-
Opacity to be apply to backgroundColor.
finalinherited
- borderAlpha → int?
-
Alpha to be apply to borderColor.
finalinherited
- borderColor → Color?
-
Color to be used for the sheet's border.
finalinherited
- borderOpacity → double?
-
Opacity to be apply to borderColor.
finalinherited
- borderRadius → BorderRadius?
-
The radii for each corner of the sheet's border.
finalinherited
- borderStyle → BorderStyle?
-
The style of this side of the sheet's border.
finalinherited
- borderWidth → double?
-
The width of this side of the sheet's border, in logical pixels.
finalinherited
- clipBehavior → Clip?
-
The sheet's content will be clipped (or not) according to this option.
finalinherited
- elevation → double?
-
The sheet's z-coordinate relative to
the parent at which to place this physical object.
finalinherited
- foregroundAlign → CrossAxisAlignment?
-
Cross axis alignment of the foreground widget
finalinherited
- foregroundAlpha → int?
-
Alpha to be apply to foregroundColor.
finalinherited
- foregroundColor → Color?
-
The color to be applied to the sheet's label, and icon
finalinherited
- foregroundExpanded → bool?
-
Whether the foreground widget is expanded or not
finalinherited
- foregroundJustify → MainAxisAlignment?
-
Main axis alignment of the foreground widget
finalinherited
- foregroundLoosen → bool?
-
Whether the spacing is forced to child with no leading or trailing.
finalinherited
- foregroundOpacity → double?
-
Opacity to be apply to foregroundColor.
finalinherited
- foregroundSpacing → double?
-
How much space to place between sheet's foreground widget in a run in the main axis.
finalinherited
- foregroundStyle → TextStyle?
-
The style to be applied to the sheet's label.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
The vertical extent of the sheet widget.
finalinherited
- iconColor → Color?
-
Color to be used for the icon's inside the sheet.
finalinherited
- iconOpacity → double?
-
Opacity to be apply to iconColor.
finalinherited
- iconSize → double?
-
The size of the icon's inside the sheet, in logical pixels.
finalinherited
- isElevated → bool
-
Whether or not this is elevated variant
no setterinherited
- isFilled → bool
-
Whether or not this is filled variant
no setterinherited
- isOutlined → bool
-
Whether or not this is outlined variant
no setterinherited
- isText → bool
-
Whether or not this is text variant
no setterinherited
- isTonal → bool
-
Whether or not this is tonal variant
no setterinherited
- margin → EdgeInsetsGeometry?
-
Empty space to surround the outside sheet.
finalinherited
- overlayColor → Color?
-
Defines the overlay colors.
finalinherited
- overlayDisabled → bool?
-
Whether the overlay is disabled or not
finalinherited
- padding → EdgeInsetsGeometry?
-
The padding between the contents of the sheet and the outside sheet.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → SheetSeverity?
-
Type of the sheet severity
finalinherited
- shadowColor → Color?
-
When elevation is non zero the color
to use for the sheet's shadow color.
finalinherited
- shape → BoxShape?
-
The type of shape.
finalinherited
- surfaceTint → Color?
-
The color used as an overlay on
color
to indicate elevation.finalinherited - variant → SheetVariant?
-
Type of the sheet variant
finalinherited
- width → double?
-
The horizontal extent of the sheet widget.
finalinherited
Methods
-
copyWith(
{AlertVariant? variant, AlertSeverity? severity, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Alignment? alignment, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, BoxShape? shape, Color? iconColor, double? iconOpacity, double? iconSize}) → AlertStyle -
Creates a copy of this AlertStyle but with
the given fields replaced with the new values.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
merge(
covariant AlertStyle? other) → AlertStyle -
Creates a copy of this AlertStyle but with
the given fields replaced with the new values.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toMap(
) → Map< String, dynamic> -
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
AlertStyle? a, AlertStyle? b, double t) → AlertStyle? -
Linearly interpolate between two AlertStyle objects.
override
Constants
- defaults → const AlertStyle