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