ShowUFUConfirmationDialog function
Future
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,
- UFUButtonRadius? buttonRadius,
- UFUButtonColorType? prefixBtnColorType,
- VoidCallback? onTapIcon,
Implementation
Future<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,
UFUButtonRadius? buttonRadius,
UFUButtonColorType? prefixBtnColorType,
VoidCallback? onTapIcon,
}) async {
return 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,
buttonRadius: buttonRadius,
),
// _buildErrorBottomSheet(title, message, showRetry, retryCallback),
backgroundColor: AppTheme.themeColors.base,
isScrollControlled: true,
// shape: const RoundedRectangleBorder(
// borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
// ),
);
}