promptIosInstall static method

Future<void> promptIosInstall({
  1. bool force = false,
  2. String? title,
  3. String? step1,
  4. String? step2,
  5. String? step3,
  6. String? safariHint,
  7. String? doneLabel,
})

Implementation

static Future<void> promptIosInstall({
  bool force = false,
  String? title,
  String? step1,
  String? step2,
  String? step3,
  String? safariHint,
  String? doneLabel,
}) async {
  if (!force && !canPromptIosInstall) return;

  final bool safari = force || isIosSafari;

  await UNavigator.bottomSheet<void>(
    _IosInstallSheet(
      title: title ?? U.s.openThisPageInSafariThenAddItToYourHomeScreen,
      safari: safari,
      step1: step1 ?? U.s.tapTheShareButtonInSafarisToolbar,
      step2: step2 ?? U.s.scrollDownAndTapAddToHomeScreen,
      step3: step3 ?? U.s.tapAddInTheTopRightCorner,
      safariHint: safariHint ?? U.s.openThisPageInSafariThenAddItToYourHomeScreen,
      doneLabel: doneLabel ?? U.s.gotIt,
    ),
    showDragHandle: true,
  );
}