showPromptDialog method

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

Implementation

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