popupCupertinoDialog<T> method
Cupertino 风格的 Dialog showCupertinoDialog
Implementation
Future<T?> popupCupertinoDialog<T>({
WidgetBuilder? builder,
DialogOptions? options,
}) {
options = GlobalOptions().dialogOptions.merge(options);
return showCupertinoDialog(
context: GlobalOptions().globalNavigatorKey.currentContext!,
builder: builder ?? toWidgetBuilder,
barrierLabel: options.barrierLabel,
barrierDismissible: options.barrierDismissible,
useRootNavigator: options.useRootNavigator,
routeSettings: options.routeSettings,
anchorPoint: options.anchorPoint);
}