HcAlertStyle class
Alert style class for reusable customization of dialogs.
Constructors
- HcAlertStyle({HcAnimationType animationType = HcAnimationType.grow, Duration animationDuration = const Duration(milliseconds: 200), ShapeBorder? alertBorder, bool isCloseButton = true, bool isOverlayTapDismiss = true, Color overlayColor = Colors.black87, TextStyle titleStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w500, fontStyle: FontStyle.normal, fontSize: 22.0), TextStyle descStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w400, fontStyle: FontStyle.normal, fontSize: 18.0), EdgeInsets buttonAreaPadding = const EdgeInsets.all(10.0)})
-
Alert style constructor function
The
animationType
parameter is used for transitions. Default: "fromBottom" TheanimationDuration
parameter is used to set the animation transition time. Default: "200 ms" ThealertBorder
parameter sets border. TheisCloseButton
parameter sets visibility of the close button. Default: "true" TheisOverlayTapDismiss
parameter sets closing the alert by clicking outside. Default: "true" TheoverlayColor
parameter sets the background color of the outside. Default: "Color(0xDD000000)" ThetitleStyle
parameter sets alert title text style. ThedescStyle
parameter sets alert desc text style. ThebuttonAreaPadding
parameter sets button area padding.const
Properties
- alertBorder → ShapeBorder?
-
final
- animationDuration → Duration
-
final
- animationType → HcAnimationType
-
final
-
final
- descStyle → TextStyle
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCloseButton → bool
-
final
- isOverlayTapDismiss → bool
-
final
- overlayColor → Color
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleStyle → TextStyle
-
final
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