showCCupertinoModalPopup<T> function
Future<T?>
showCCupertinoModalPopup<T>({
- required BuildContext context,
- required WidgetBuilder builder,
- Cancellable? cancellable,
- ImageFilter? filter,
- Color barrierColor = kCupertinoModalBarrierColor,
- bool barrierDismissible = true,
- bool semanticsDismissible = false,
- RouteSettings? routeSettings,
- Offset? anchorPoint,
Implementation
Future<T?> showCCupertinoModalPopup<T>({
required BuildContext context,
required WidgetBuilder builder,
Cancellable? cancellable,
ImageFilter? filter,
Color barrierColor = kCupertinoModalBarrierColor,
bool barrierDismissible = true,
bool useRootNavigator = true,
bool semanticsDismissible = false,
RouteSettings? routeSettings,
Offset? anchorPoint,
}) {
final NavigatorState navigator =
Navigator.of(context, rootNavigator: useRootNavigator);
final route = CupertinoModalPopupRoute<T>(
builder: builder,
filter: filter,
barrierColor: CupertinoDynamicColor.resolve(barrierColor, context),
barrierDismissible: barrierDismissible,
semanticsDismissible: semanticsDismissible,
settings: routeSettings,
anchorPoint: anchorPoint,
);
return navigator.pushCancellableRoute(route, cancellable);
}