ShowUFUConfirmationDialog function

dynamic ShowUFUConfirmationDialog({
  1. required String? title,
  2. String? subTitle,
  3. Color? subTitleColor,
  4. String? prefixBtnText = 'Cancel',
  5. String? suffixBtnText = '',
  6. VoidCallback? onTapPrefix,
  7. VoidCallback? onTapSuffix,
  8. IconData? icon,
  9. double? iconSize,
  10. UFUConfirmationDialogType? type = UFUConfirmationDialogType.message,
  11. bool disableButtons = false,
  12. Widget? suffixBtnIcon,
  13. Widget? content,
  14. UFUButtonColorType? prefixBtnColorType,
  15. 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)),
    // ),
  );
}