showCupertino<T> static method

Future<T?> showCupertino<T>({
  1. required BuildContext context,
  2. required WidgetBuilder pageBuilder,
  3. bool useNestedNavigation = false,
  4. bool enableDrag = true,
})

Position-aware wrapper for showCupertinoSheet — the iOS 26 native-style stacked-card sheet. Same probe injection.

Implementation

static Future<T?> showCupertino<T>({
  required BuildContext context,
  required WidgetBuilder pageBuilder,
  bool useNestedNavigation = false,
  bool enableDrag = true,
}) {
  return showCupertinoSheet<T>(
    context: context,
    useNestedNavigation: useNestedNavigation,
    enableDrag: enableDrag,
    scrollableBuilder: (ctx, scrollController) =>
        CNSheetGeometryProbe(child: pageBuilder(ctx)),
  );
}