AwesomeAlertTheme class
AwesomeAlertTheme is a singleton class used to manage global styling for all alerts.
You can customize colors, text styles, and dimensions here to maintain consistency across your application.
Example:
AwesomeAlertTheme().progressColor = Colors.red;
AwesomeAlertTheme().borderRadius = 20.0;
Constructors
- AwesomeAlertTheme()
-
Returns the singleton instance of AwesomeAlertTheme.
factory
Properties
- borderRadius ↔ double
-
Default border radius for the alert dialog corners. Defaults to 12.
getter/setter pair
-
Default height for buttons in the alert.
getter/setter pair
-
Default border radius for buttons in the alert.
getter/setter pair
- cancelButtonColor ↔ Color?
-
Default color for the cancel button.
getter/setter pair
- cancelButtonTextStyle ↔ TextStyle?
-
Default TextStyle for the cancel button text.
getter/setter pair
- confirmButtonColor ↔ Color?
-
Default color for the confirm button.
getter/setter pair
- confirmButtonTextStyle ↔ TextStyle?
-
Default TextStyle for the confirm button text.
getter/setter pair
- defaultPaddingAlert ↔ double?
-
Default padding for the alert dialog itself.
getter/setter pair
- descriptionStyle ↔ TextStyle?
-
Default TextStyle for the alert description.
getter/setter pair
- fixedSize ↔ double?
-
Optional maximum width for the alert dialog on large screens.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalBodyPadding ↔ double?
-
Default internal padding for the alert body content.
getter/setter pair
- progressColor ↔ Color?
-
Color for the progress indicator in loading alerts.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textAlignDescription ↔ TextAlign?
-
Default text alignment for the alert description.
getter/setter pair
- titleStyle ↔ TextStyle?
-
Default TextStyle for the alert title.
getter/setter pair
Methods
-
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