showLaunchDialog function

Future<AndroidQuickLaunchOption?> showLaunchDialog({
  1. required BuildContext context,
  2. required Device device,
})

Implementation

Future<AndroidQuickLaunchOption?> showLaunchDialog({
  required BuildContext context,
  required Device device,
}) => showOverlayDialog<AndroidQuickLaunchOption>(
  context: context,
  builder: (context, completer, entry) {
    return AndroidLaunchDialog(
      device: device,
      onLaunch: (option) {
        completer.complete(option);
        entry?.remove();
      },
      onCancel: () {
        completer.complete(null);
        entry?.remove();
      },
    );
  },
);