mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-29 12:33:28 +01:00 
			
		
		
		
	Add long-press URL copy and snackbar message
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user