popupCupertinoDialog<T> method

Future<T?> popupCupertinoDialog<T>({
  1. WidgetBuilder? builder,
  2. DialogOptions? options,
})

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);
}