mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 07:35:13 +00:00
design: Adjust open url dialog design a little bit
This commit is contained in:
parent
f475b43e0b
commit
2e03108f54
1 changed files with 8 additions and 10 deletions
|
@ -38,22 +38,20 @@ class UrlLauncher {
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final consent = await showConfirmationDialog(
|
final consent = await showModalActionSheet<_LaunchUrlResponse>(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context)!.openLinkInBrowser,
|
title: url,
|
||||||
message: url,
|
style: AdaptiveStyle.material,
|
||||||
actions: [
|
actions: [
|
||||||
AlertDialogAction(
|
SheetAction(
|
||||||
key: null,
|
|
||||||
label: L10n.of(context)!.cancel,
|
|
||||||
),
|
|
||||||
AlertDialogAction(
|
|
||||||
key: _LaunchUrlResponse.copy,
|
key: _LaunchUrlResponse.copy,
|
||||||
|
icon: Icons.copy_outlined,
|
||||||
label: L10n.of(context)!.copy,
|
label: L10n.of(context)!.copy,
|
||||||
),
|
),
|
||||||
AlertDialogAction(
|
SheetAction(
|
||||||
key: _LaunchUrlResponse.launch,
|
key: _LaunchUrlResponse.launch,
|
||||||
label: L10n.of(context)!.ok,
|
icon: Icons.launch_outlined,
|
||||||
|
label: L10n.of(context)!.openLinkInBrowser,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue