showConfirmDialog method

void showConfirmDialog({
  1. DialogIcon? icon,
  2. String? title,
  3. String? message,
  4. Widget? content,
  5. String confirmText = '确认',
  6. String cancelText = '取消',
  7. String? moreButtonText,
  8. Function? onConfirm,
  9. Function? onCancel,
  10. Function? onMore,
  11. bool barrierDismissible = false,
  12. Color? barrierColor,
  13. bool useSafeArea = true,
  14. GlobalKey<NavigatorState>? navigatorKey,
  15. Object? arguments,
  16. Duration? transitionDuration,
  17. Curve? transitionCurve,
  18. String? name,
  19. RouteSettings? routeSettings,
  20. double? width,
})

Implementation

void showConfirmDialog({
  DialogIcon? icon,
  String? title,
  String? message,
  Widget? content,
  String confirmText = '确认',
  String cancelText = '取消',
  String? moreButtonText,
  Function? onConfirm,
  Function? onCancel,
  Function? onMore,
  bool barrierDismissible = false,
  Color? barrierColor,
  bool useSafeArea = true,
  GlobalKey<NavigatorState>? navigatorKey,
  Object? arguments,
  Duration? transitionDuration,
  Curve? transitionCurve,
  String? name,
  RouteSettings? routeSettings,
  double? width,
}) {
  Get.dialog(
    _buildDialog(
      icon: icon,
      title: title,
      message: message,
      content: content,
      confirmText: confirmText,
      cancelText: cancelText,
      moreButtonText: moreButtonText,
      onConfirm: onConfirm,
      onCancel: onCancel,
      onMore: onMore,
      width: width,
    ),
    barrierDismissible: barrierDismissible,
    barrierColor: barrierColor,
    useSafeArea: useSafeArea,
    navigatorKey: navigatorKey,
    arguments: arguments,
    transitionDuration: transitionDuration,
    transitionCurve: transitionCurve,
    name: name,
    routeSettings: routeSettings,
  );
}