Update toast message when start download all attachment

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-10 10:12:09 +07:00
committed by Dat H. Pham
parent 8100e886d7
commit 88764f9e0f
3 changed files with 24 additions and 10 deletions
@@ -514,11 +514,12 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
); );
if (currentOverlayContext != null && currentContext != null) { if (currentOverlayContext != null && currentContext != null) {
appToast.showToastMessage( appToast.showToastSuccessMessage(
currentOverlayContext!, currentOverlayContext!,
AppLocalizations.of(currentContext!).your_download_has_started, AppLocalizations.of(currentContext!).creatingAnArchiveForDownloading,
leadingSVGIconColor: AppColor.primaryColor, leadingSVGIconColor: Colors.white,
leadingSVGIcon: imagePaths.icDownload); leadingSVGIcon: imagePaths.icDownloadAll,
);
} }
} else if (success is DownloadingAllAttachmentsForWeb) { } else if (success is DownloadingAllAttachmentsForWeb) {
final percent = success.progress.round(); final percent = success.progress.round();
+12 -6
View File
@@ -4576,12 +4576,6 @@
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
}, },
"archiveAndDownload": "Archive and download",
"@archiveAndDownload": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"countMessageInSpam": "{count} message in spam", "countMessageInSpam": "{count} message in spam",
"@countMessageInSpam": { "@countMessageInSpam": {
"type": "text", "type": "text",
@@ -4659,5 +4653,17 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"archiveAndDownload": "Archive and download",
"@archiveAndDownload": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"creatingAnArchiveForDownloading": "Creating an archive for downloading",
"@creatingAnArchiveForDownloading": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
@@ -4912,4 +4912,11 @@ class AppLocalizations {
name: 'archiveAndDownload', name: 'archiveAndDownload',
); );
} }
String get creatingAnArchiveForDownloading {
return Intl.message(
'Creating an archive for downloading',
name: 'creatingAnArchiveForDownloading',
);
}
} }