ShowUFUConfirmationDialog function
dynamic
ShowUFUConfirmationDialog({
- required String? title,
- String? subTitle,
- Color? subTitleColor,
- String? prefixBtnText = 'Cancel',
- String? suffixBtnText = '',
- VoidCallback? onTapPrefix,
- VoidCallback? onTapSuffix,
- IconData? icon,
- double? iconSize,
- UFUConfirmationDialogType? type = UFUConfirmationDialogType.message,
- bool disableButtons = false,
- Widget? suffixBtnIcon,
- Widget? content,
- UFUButtonColorType? prefixBtnColorType,
- VoidCallback? onTapIcon,
Implementation
ShowUFUConfirmationDialog({required String? title, String? subTitle, Color? subTitleColor,
String? prefixBtnText = 'Cancel', String? suffixBtnText = '', VoidCallback? onTapPrefix,
VoidCallback? onTapSuffix, IconData? icon, double? iconSize, UFUConfirmationDialogType? type = UFUConfirmationDialogType.message,
bool disableButtons = false, Widget? suffixBtnIcon, Widget? content,
UFUButtonColorType? prefixBtnColorType, VoidCallback? onTapIcon,}) async {
await Get.bottomSheet(
UFUConfirmationDialog(
title: title,
subTitle: subTitle,
subTitleColor: subTitleColor,
prefixBtnText: prefixBtnText,
suffixBtnText: suffixBtnText,
onTapPrefix: onTapPrefix,
onTapSuffix: onTapSuffix,
icon: icon,
iconSize: iconSize,
type: type ?? UFUConfirmationDialogType.message,
disableButtons: disableButtons,
suffixBtnIcon: suffixBtnIcon,
content: content,
prefixBtnColorType: prefixBtnColorType,
onTapIcon: onTapIcon
),
// _buildErrorBottomSheet(title, message, showRetry, retryCallback),
backgroundColor: AppTheme.themeColors.base,
isScrollControlled: true,
// shape: const RoundedRectangleBorder(
// borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
// ),
);
}