QuickAlertOptions constructor
QuickAlertOptions({
- String? title,
- String? text,
- TextAlign? titleAlignment,
- TextAlign? textAlignment,
- Widget? widget,
- required QuickAlertType type,
- QuickAlertAnimType? animType,
- bool? barrierDismissible,
- VoidCallback? onConfirmBtnTap,
- VoidCallback? onCancelBtnTap,
- String? confirmBtnText,
- String? cancelBtnText,
- Color? confirmBtnColor,
- TextStyle? confirmBtnTextStyle,
- TextStyle? cancelBtnTextStyle,
- Color? backgroundColor,
- Color? headerBackgroundColor,
- Color? titleColor,
- Color? textColor,
- bool? showCancelBtn,
- bool? showConfirmBtn,
- double? borderRadius,
- String? customAsset,
- double? width,
- Timer? timer,
Alert Options
Implementation
QuickAlertOptions({
/// Title of the dialog
this.title,
/// Text of the dialog
this.text,
/// TitleAlignment of the dialog
this.titleAlignment,
/// TextAlignment of the dialog
this.textAlignment,
/// Custom Widget of the dialog
this.widget,
/// Alert type [success, error, warning, confirm, info, loading, custom]
required this.type,
/// Animation type [scale, rotate, slideInDown, slideInUp, slideInLeft, slideInRight]
this.animType,
/// Barrier Dissmisable
this.barrierDismissible,
/// Triggered when confirm button is tapped
this.onConfirmBtnTap,
/// Triggered when cancel button is tapped
this.onCancelBtnTap,
/// Confirmation button text
this.confirmBtnText,
/// Cancel button text
this.cancelBtnText,
/// Color for confirm button
this.confirmBtnColor,
/// TextStyle for confirm button
this.confirmBtnTextStyle,
/// TextStyle for cancel button
this.cancelBtnTextStyle,
/// Backgroung Color for dialog
this.backgroundColor,
/// Header Backgroung Color for dialog
this.headerBackgroundColor,
/// Color of title
this.titleColor,
/// Color of text
this.textColor,
/// Determines if cancel button is shown or not
this.showCancelBtn,
/// Determines if confirm button is shown or not
this.showConfirmBtn,
/// Dialog Border Radius
this.borderRadius,
/// Asset path of your Image file
this.customAsset,
/// Width of the dialog
this.width,
/// timer for dismissing dialog (Ok button)
this.timer,
});