showLaunchDialog function
Future<AndroidQuickLaunchOption?>
showLaunchDialog({
- required BuildContext context,
- 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();
},
);
},
);