[PR #12973] [MERGED] feat(mobile): enhance download operations #13771

Closed
opened 2026-02-05 15:20:36 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/12973
Author: @alextran1502
Created: 9/27/2024
Status: Merged
Merged: 9/29/2024
Merged by: @alextran1502

Base: mainHead: feat/background-downloader


📝 Commits (10+)

  • e3394bb add packages
  • a6c4d18 Merge branch 'main' of github.com:immich-app/immich into feat/background-downloader
  • 5b334bd create download task
  • 45fd7dd show progress
  • 9dfde19 save video and image
  • 17fc266 show progress info
  • 1a797ea live photo wip
  • 72efa4f Merge branch 'main' of github.com:immich-app/immich into feat/background-downloader
  • 5e4e622 download and link live photos
  • e10aa97 Update list of assets

📊 Changes

20 files changed (+868 additions, -285 deletions)

View changed files

📝 mobile/assets/i18n/en-US.json (+13 -2)
📝 mobile/ios/Podfile.lock (+6 -0)
mobile/lib/interfaces/download.interface.dart (+14 -0)
📝 mobile/lib/main.dart (+22 -3)
mobile/lib/models/asset_viewer/asset_viewer_page_state.model.dart (+0 -55)
mobile/lib/models/download/download_state.model.dart (+109 -0)
mobile/lib/models/download/livephotos_medatada.model.dart (+60 -0)
mobile/lib/pages/common/download_panel.dart (+150 -0)
📝 mobile/lib/pages/common/gallery_viewer.page.dart (+2 -0)
mobile/lib/providers/asset_viewer/download.provider.dart (+191 -0)
mobile/lib/providers/asset_viewer/image_viewer_page_state.provider.dart (+0 -99)
mobile/lib/repositories/download.repository.dart (+68 -0)
mobile/lib/services/download.service.dart (+193 -0)
mobile/lib/services/image_viewer.service.dart (+0 -117)
mobile/lib/utils/download.dart (+3 -0)
📝 mobile/lib/widgets/asset_viewer/bottom_gallery_bar.dart (+22 -3)
📝 mobile/lib/widgets/asset_viewer/gallery_app_bar.dart (+2 -2)
📝 mobile/lib/widgets/forms/login/login_form.dart (+1 -1)
📝 mobile/pubspec.lock (+10 -2)
📝 mobile/pubspec.yaml (+2 -1)

📄 Description

This PR uses the background_downloader package to enhance the download operation. It will now show the progress of the download and allow the user to cancel it.

In the near future, this package will also be used to upload assets.

Download progress and cancel operation

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/12973 **Author:** [@alextran1502](https://github.com/alextran1502) **Created:** 9/27/2024 **Status:** ✅ Merged **Merged:** 9/29/2024 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `feat/background-downloader` --- ### 📝 Commits (10+) - [`e3394bb`](https://github.com/immich-app/immich/commit/e3394bbd7d29444afce695705d4abd7e56127f21) add packages - [`a6c4d18`](https://github.com/immich-app/immich/commit/a6c4d182094739c6369bf1000b42afe56d3e5b3c) Merge branch 'main' of github.com:immich-app/immich into feat/background-downloader - [`5b334bd`](https://github.com/immich-app/immich/commit/5b334bd81ca09679ec39d1d32b1d7dedbc1ce3f8) create download task - [`45fd7dd`](https://github.com/immich-app/immich/commit/45fd7dd333e994e80459be9dcade52cb6d09cf31) show progress - [`9dfde19`](https://github.com/immich-app/immich/commit/9dfde19198e9375f7225c99bedeb2e9cfca5c690) save video and image - [`17fc266`](https://github.com/immich-app/immich/commit/17fc2660aff1b54ce6a615d41ac858a0d1f1d32a) show progress info - [`1a797ea`](https://github.com/immich-app/immich/commit/1a797ea95c92e44c021b620b1dc0e798e60780cb) live photo wip - [`72efa4f`](https://github.com/immich-app/immich/commit/72efa4f47614f59d8522f39e1517876a16040b1e) Merge branch 'main' of github.com:immich-app/immich into feat/background-downloader - [`5e4e622`](https://github.com/immich-app/immich/commit/5e4e622fef25da3395529cc4d237d38dc9815679) download and link live photos - [`e10aa97`](https://github.com/immich-app/immich/commit/e10aa975e09446b5bd8ad72a725795701e67a17f) Update list of assets ### 📊 Changes **20 files changed** (+868 additions, -285 deletions) <details> <summary>View changed files</summary> 📝 `mobile/assets/i18n/en-US.json` (+13 -2) 📝 `mobile/ios/Podfile.lock` (+6 -0) ➕ `mobile/lib/interfaces/download.interface.dart` (+14 -0) 📝 `mobile/lib/main.dart` (+22 -3) ➖ `mobile/lib/models/asset_viewer/asset_viewer_page_state.model.dart` (+0 -55) ➕ `mobile/lib/models/download/download_state.model.dart` (+109 -0) ➕ `mobile/lib/models/download/livephotos_medatada.model.dart` (+60 -0) ➕ `mobile/lib/pages/common/download_panel.dart` (+150 -0) 📝 `mobile/lib/pages/common/gallery_viewer.page.dart` (+2 -0) ➕ `mobile/lib/providers/asset_viewer/download.provider.dart` (+191 -0) ➖ `mobile/lib/providers/asset_viewer/image_viewer_page_state.provider.dart` (+0 -99) ➕ `mobile/lib/repositories/download.repository.dart` (+68 -0) ➕ `mobile/lib/services/download.service.dart` (+193 -0) ➖ `mobile/lib/services/image_viewer.service.dart` (+0 -117) ➕ `mobile/lib/utils/download.dart` (+3 -0) 📝 `mobile/lib/widgets/asset_viewer/bottom_gallery_bar.dart` (+22 -3) 📝 `mobile/lib/widgets/asset_viewer/gallery_app_bar.dart` (+2 -2) 📝 `mobile/lib/widgets/forms/login/login_form.dart` (+1 -1) 📝 `mobile/pubspec.lock` (+10 -2) 📝 `mobile/pubspec.yaml` (+2 -1) </details> ### 📄 Description This PR uses the `background_downloader` package to enhance the download operation. It will now show the progress of the download and allow the user to cancel it. In the near future, this package will also be used to upload assets. ### Download progress and cancel operation ![image](https://github.com/user-attachments/assets/59e506be-549d-472c-bcc5-938f892dbe68) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 15:20:36 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#13771