showModalExprollable<T> function
- @Deprecated("It will be removed in v1.0.0. " "Use 'ModalExprollableRouteBuilder' instead")
- BuildContext context, {
- required WidgetBuilder builder,
- bool useSafeArea = true,
- RouteSettings? routeSettings,
- Color darkestBarrierColor = Colors.black54,
- Color lightestBarrierColor = Colors.black26,
- Color initialBarrierColor = Colors.black54,
- void dismissBehavior() = _defaultDismissBehavior,
- bool barrierDismissible = true,
- 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,
),
),
);