Merge pull request #2134 from ImranR98/dev
Better file naming on selective export + updated screenshots
| Before Width: | Height: | Size: 418 KiB After Width: | Height: | Size: 346 KiB | 
| Before Width: | Height: | Size: 418 KiB After Width: | Height: | Size: 354 KiB | 
| Before Width: | Height: | Size: 265 KiB After Width: | Height: | Size: 265 KiB | 
| Before Width: | Height: | Size: 220 KiB After Width: | Height: | Size: 227 KiB | 
| Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 178 KiB | 
| Before Width: | Height: | Size: 362 KiB After Width: | Height: | Size: 264 KiB | 
| @@ -911,13 +911,15 @@ class AppsPageState extends State<AppsPage> { | ||||
|                                               .map((e) => e.id) | ||||
|                                               .toList(), | ||||
|                                           overrideExportSettings: false)); | ||||
|                                   String fn = | ||||
|                                       '${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().toIso8601String().replaceAll(':', '-')}-count-${selectedApps.length}'; | ||||
|                                   XFile f = XFile.fromData( | ||||
|                                       Uint8List.fromList( | ||||
|                                           utf8.encode(exportJSON)), | ||||
|                                       mimeType: 'application/json', | ||||
|                                       name: | ||||
|                                           '${tr('obtainiumExportHyphenatedLowercase')}-${selectedApps.length}-${DateTime.now().millisecondsSinceEpoch}'); | ||||
|                                   Share.shareXFiles([f]); | ||||
|                                       name: fn); | ||||
|                                   Share.shareXFiles([f], | ||||
|                                       fileNameOverrides: ['$fn.json']); | ||||
|                                 }, | ||||
|                           child: Text( | ||||
|                               '${tr('share')} - ${tr('obtainiumExport')}')), | ||||
|   | ||||