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" The animationDuration parameter is used to set the animation transition time. Default: "200 ms" The alertBorder parameter sets border. The isCloseButton parameter sets visibility of the close button. Default: "true" The isOverlayTapDismiss parameter sets closing the alert by clicking outside. Default: "true" The overlayColor parameter sets the background color of the outside. Default: "Color(0xDD000000)" The titleStyle parameter sets alert title text style. The descStyle parameter sets alert desc text style. The buttonAreaPadding parameter sets button area padding.
const

Properties

alertBorder ShapeBorder?
final
animationDuration Duration
final
animationType HcAnimationType
final
buttonAreaPadding EdgeInsets
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