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 = FlExtended().dialogOptions.merge(options);
  assert(FlExtended().navigatorKey.currentContext != null);
  return showCupertinoDialog<T>(
      context: FlExtended().navigatorKey.currentContext!,
      builder: builder ?? toWidgetBuilder,
      barrierLabel: options.barrierLabel,
      barrierDismissible: options.barrierDismissible,
      useRootNavigator: options.useRootNavigator,
      routeSettings: options.routeSettings,
      anchorPoint: options.anchorPoint);
}