Add long-press URL copy and snackbar message

This commit is contained in:
HRTK92
2023-04-05 10:32:56 +09:00
parent e8cbac8657
commit ed120016d9
9 changed files with 18 additions and 4 deletions

View File

@@ -61,6 +61,12 @@ class _AppPageState extends State<AppPage> {
mode: LaunchMode.externalApplication);
}
},
onLongPress: () {
Clipboard.setData(ClipboardData(text: app?.app.url ?? ''));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(tr('copiedToClipboard')),
));
},
child: Text(
app?.app.url ?? '',
textAlign: TextAlign.center,