mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-22 18:33:45 +02:00 
			
		
		
		
	Let users store a custom note per app (#1126)
This commit is contained in:
		| @@ -145,6 +145,29 @@ class _AppPageState extends State<AppPage> { | ||||
|                     appsProvider.saveApps([app.app]); | ||||
|                   } | ||||
|                 }), | ||||
|             if (app?.app.additionalSettings['about'] is String && | ||||
|                 app?.app.additionalSettings['about'].isNotEmpty) | ||||
|               Column( | ||||
|                 children: [ | ||||
|                   const SizedBox( | ||||
|                     height: 48, | ||||
|                   ), | ||||
|                   GestureDetector( | ||||
|                     onLongPress: () { | ||||
|                       Clipboard.setData(ClipboardData( | ||||
|                           text: app?.app.additionalSettings['about'] ?? '')); | ||||
|                       ScaffoldMessenger.of(context).showSnackBar(SnackBar( | ||||
|                         content: Text(tr('copiedToClipboard')), | ||||
|                       )); | ||||
|                     }, | ||||
|                     child: Text( | ||||
|                       app?.app.additionalSettings['about'], | ||||
|                       textAlign: TextAlign.center, | ||||
|                       style: const TextStyle(fontStyle: FontStyle.italic), | ||||
|                     ), | ||||
|                   ) | ||||
|                 ], | ||||
|               ), | ||||
|           ], | ||||
|         ); | ||||
|  | ||||
|   | ||||
| @@ -454,7 +454,8 @@ abstract class AppSource { | ||||
|     [ | ||||
|       GeneratedFormSwitch('skipUpdateNotifications', | ||||
|           label: tr('skipUpdateNotifications')) | ||||
|     ] | ||||
|     ], | ||||
|     [GeneratedFormTextField('about', label: tr('about'), required: false)] | ||||
|   ]; | ||||
|  | ||||
|   // Previous 2 variables combined into one at runtime for convenient usage | ||||
|   | ||||
		Reference in New Issue
	
	Block a user