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) |                                               .map((e) => e.id) | ||||||
|                                               .toList(), |                                               .toList(), | ||||||
|                                           overrideExportSettings: false)); |                                           overrideExportSettings: false)); | ||||||
|  |                                   String fn = | ||||||
|  |                                       '${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().toIso8601String().replaceAll(':', '-')}-count-${selectedApps.length}'; | ||||||
|                                   XFile f = XFile.fromData( |                                   XFile f = XFile.fromData( | ||||||
|                                       Uint8List.fromList( |                                       Uint8List.fromList( | ||||||
|                                           utf8.encode(exportJSON)), |                                           utf8.encode(exportJSON)), | ||||||
|                                       mimeType: 'application/json', |                                       mimeType: 'application/json', | ||||||
|                                       name: |                                       name: fn); | ||||||
|                                           '${tr('obtainiumExportHyphenatedLowercase')}-${selectedApps.length}-${DateTime.now().millisecondsSinceEpoch}'); |                                   Share.shareXFiles([f], | ||||||
|                                   Share.shareXFiles([f]); |                                       fileNameOverrides: ['$fn.json']); | ||||||
|                                 }, |                                 }, | ||||||
|                           child: Text( |                           child: Text( | ||||||
|                               '${tr('share')} - ${tr('obtainiumExport')}')), |                               '${tr('share')} - ${tr('obtainiumExport')}')), | ||||||
|   | |||||||