showPromptDialog method
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,
- Object? arguments,
- Duration? transitionDuration,
- Curve? transitionCurve,
- String? name,
- RouteSettings? routeSettings,
- 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,
);
}