popupMaterialDialog<T> method

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

Material 风格的 Dialog showDialog

Implementation

Future<T?> popupMaterialDialog<T>(
    {WidgetBuilder? builder, DialogOptions? options}) {
  options = FlExtended().dialogOptions.merge(options);
  assert(FlExtended().navigatorKey.currentContext != null);
  return showDialog<T>(
      context: FlExtended().navigatorKey.currentContext!,
      builder: builder ?? toWidgetBuilder,
      barrierColor: options.barrierColor,
      barrierLabel: options.barrierLabel,
      barrierDismissible: options.barrierDismissible,
      useRootNavigator: options.useRootNavigator,
      routeSettings: options.routeSettings,
      anchorPoint: options.anchorPoint,
      useSafeArea: options.useSafeArea);
}