immich/mobile/lib/providers/asset_viewer
JobiJoba 8733d1e554
feat(mobile): add bulk download functionality (#18878)
* feat(mobile): add bulk download functionality and update UI messages

- Added `downloadAll` method to `IDownloadRepository` and its implementation in `DownloadRepository` to handle multiple asset downloads.
- Implemented `downloadAllAsset` in `DownloadStateNotifier` to trigger bulk downloads.
- Updated `DownloadService` to create download tasks for all selected assets.
- Enhanced UI with new download success and failure messages in `en.json`.
- Added download button to `ControlBottomAppBar` and integrated download functionality in `MultiselectGrid`.

* translations use i18n method t()

* Update mobile/lib/services/download.service.dart

Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>

* fix(mobile): update download logic in DownloadService

- Changed the download method to utilize downloadAll for handling multiple tasks.
- Simplified remoteId check by removing unnecessary condition.

* sort i18n keys

* remove the download signature from interface and logic as we use the downloadAll now

---------

Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
2025-06-04 09:49:43 -05:00
..
asset_people.provider.dart refactor(mobile): services and providers (#9232) 2024-05-02 15:59:14 -05:00
asset_people.provider.g.dart chore(mobile): upgrade riverpod (#16742) 2025-03-09 20:30:58 -05:00
asset_stack.provider.dart chore(mobile): upgrade riverpod (#16742) 2025-03-09 20:30:58 -05:00
asset_stack.provider.g.dart chore(mobile): generated files and ci check (#16798) 2025-03-11 12:22:31 +00:00
current_asset.provider.dart refactor(mobile): services and providers (#9232) 2024-05-02 15:59:14 -05:00
current_asset.provider.g.dart chore(mobile): upgrade riverpod (#16742) 2025-03-09 20:30:58 -05:00
download.provider.dart feat(mobile): add bulk download functionality (#18878) 2025-06-04 09:49:43 -05:00
is_motion_video_playing.provider.dart feat(mobile): native_video_player (#12104) 2024-12-04 16:03:46 -05:00
render_list_status_provider.dart feat(album): album view sort order (#14648) 2024-12-16 16:11:48 +00:00
scroll_notifier.provider.dart refactor(mobile): services and providers (#9232) 2024-05-02 15:59:14 -05:00
scroll_to_date_notifier.provider.dart refactor(mobile): services and providers (#9232) 2024-05-02 15:59:14 -05:00
share_intent_upload.provider.dart fix(mobile): fix typos (#16456) 2025-03-01 20:06:47 +00:00
show_controls.provider.dart refactor(mobile): services and providers (#9232) 2024-05-02 15:59:14 -05:00
video_player_controls_provider.dart feat(mobile): native_video_player (#12104) 2024-12-04 16:03:46 -05:00
video_player_value_provider.dart feat(mobile): native_video_player (#12104) 2024-12-04 16:03:46 -05:00