showModalExprollable<T> function

  1. @Deprecated("It will be removed in v1.0.0. " "Use 'ModalExprollableRouteBuilder' instead")
Future<T?> showModalExprollable<T>(
  1. BuildContext context, {
  2. required WidgetBuilder builder,
  3. bool useSafeArea = true,
  4. bool useRootNavigator = true,
  5. RouteSettings? routeSettings,
  6. Color darkestBarrierColor = Colors.black54,
  7. Color lightestBarrierColor = Colors.black26,
  8. Color initialBarrierColor = Colors.black54,
  9. void dismissBehavior(
    1. BuildContext
    ) = _defaultDismissBehavior,
  10. bool barrierDismissible = true,
  11. ViewportInset dismissThresholdInset = const DismissThresholdInset(),
})

Shows an ExprollablePageView as a modal dialog.

Implementation

@Deprecated(
  "It will be removed in v1.0.0. "
  "Use 'ModalExprollableRouteBuilder' instead",
)
Future<T?> showModalExprollable<T>(
  BuildContext context, {
  required WidgetBuilder builder,
  bool useSafeArea = true,
  bool useRootNavigator = true,
  RouteSettings? routeSettings,
  Color darkestBarrierColor = Colors.black54,
  Color lightestBarrierColor = Colors.black26,
  Color initialBarrierColor = Colors.black54,
  void Function(BuildContext) dismissBehavior = _defaultDismissBehavior,
  bool barrierDismissible = true,
  ViewportInset dismissThresholdInset = const DismissThresholdInset(),
}) =>
    showDialog<T>(
      context: context,
      useSafeArea: useSafeArea,
      useRootNavigator: useRootNavigator,
      routeSettings: routeSettings,
      barrierColor: Colors.transparent,
      barrierDismissible: false,
      builder: (context) => Dialog.fullscreen(
        backgroundColor: Colors.transparent,
        child: ModalExprollable(
          builder: builder,
          darkestBarrierColor: darkestBarrierColor,
          lightestBarrierColor: lightestBarrierColor,
          initialBarrierColor: initialBarrierColor,
          dismissBehavior: dismissBehavior,
          barrierDismissible: barrierDismissible,
          dismissThresholdInset: dismissThresholdInset,
        ),
      ),
    );