HcAlertStyle constructor
const
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.
Implementation
const HcAlertStyle({
this.animationType = HcAnimationType.grow,
this.animationDuration = const Duration(milliseconds: 200),
this.alertBorder,
this.isCloseButton = true,
this.isOverlayTapDismiss = true,
this.overlayColor = Colors.black87,
this.titleStyle = const TextStyle(
color: Colors.black,
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
fontSize: 22.0),
this.descStyle = const TextStyle(
color: Colors.black,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
fontSize: 18.0),
this.buttonAreaPadding = const EdgeInsets.all(10.0),
});