mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 01:11:46 +03:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user