chore(mobile): add toast notification for "Download Started" (#9023)

Add Toast for download started

Add Toast notification for mobile download started.
Added new placeholder in each language file - populated with best estimate translations.
This commit is contained in:
DeadEnd
2024-04-26 02:08:52 -04:00
committed by GitHub
parent 69f8bfe874
commit 00d186ec52
41 changed files with 50 additions and 3 deletions

View File

@@ -29,6 +29,13 @@ class ImageViewerStateNotifier extends StateNotifier<ImageViewerPageState> {
void downloadAsset(Asset asset, BuildContext context) async {
state = state.copyWith(downloadAssetStatus: DownloadAssetStatus.loading);
ImmichToast.show(
context: context,
msg: 'image_viewer_page_state_provider_download_started'.tr(),
toastType: ToastType.info,
gravity: ToastGravity.BOTTOM,
);
bool isSuccess = await _imageViewerService.downloadAssetToDevice(asset);
if (isSuccess) {