ShadAlertTheme class

Theme for the ShadAlert widget.

Annotations

Constructors

ShadAlertTheme({bool canMerge = true, ShadDecoration? decoration, EdgeInsetsGeometry? iconPadding, Color? iconColor, double? iconSize, TextStyle? titleStyle, TextStyle? descriptionStyle, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, double? gap})
Theme for the ShadAlert widget.
const

Properties

canMerge → bool
no setter
crossAxisAlignment → CrossAxisAlignment?
Cross axis alignment for the alert's content, defaults to start if not specified. Controls vertical alignment of icon and text content within the Row.
final
decoration → ShadDecoration?
Custom decoration for the alert, merged with theme defaults if provided. Allows customization of border, padding, and other visual properties.
final
descriptionStyle → TextStyle?
Style for the description text, overrides theme default if provided. Controls font size, weight, color, and other text properties of the description.
final
gap → double?
The vertical gap between the title and the description, shadcn's gap-0.5. Defaults to the theme's value.
final
hashCode → int
The hash code for this object.
no setterinherited
iconColor → Color?
Color of the icon, overrides theme default if provided. Applied to the IconTheme if icon is not null.
final
iconPadding → EdgeInsetsGeometry?
Padding around the icon, defaults to right padding of 12 if not specified. Controls the spacing between the icon and adjacent content.
final
iconSize → double?
Size of the icon, overrides theme default if provided.
final
mainAxisAlignment → MainAxisAlignment?
Main axis alignment for the alert's content, defaults to start if not specified. Controls horizontal arrangement of icon and text content within the Row.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
titleStyle → TextStyle?
The title widget of the alert, typically a Text widget. Displayed with the style defined by titleStyle or theme defaults.
final

Methods

copyWith({ShadDecoration? decoration, EdgeInsetsGeometry? iconPadding, Color? iconColor, TextStyle? titleStyle, TextStyle? descriptionStyle, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, double? iconSize, double? gap}) → ShadAlertTheme
inherited
merge(ShadAlertTheme? other) → ShadAlertTheme
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

lerp(ShadAlertTheme? a, ShadAlertTheme? b, double t) → ShadAlertTheme?
Linearly interpolates between a and b by t.