-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 4674 - immediate access to "other" pictures if possible (#4928)
New file: * `background_task_product_change.dart`: Interface for background tasks that change a product. Impacted files: * `background_task_crop.dart`: minor refactoring * `background_task_details.dart`: minor refactoring, implementing new interface `BackgroundTaskProductChange` * `background_task_image.dart`: minor refactoring * `background_task_unselected.dart`: minor refactoring, implementing new interface `BackgroundTaskProductChange` * `background_task_upload.dart`: minor refactoring, implementing new interface `BackgroundTaskProductChange` * `product_cards_helper.dart`: new method `getRawProductImages` * `product_image_gallery_other_view.dart`: now we may have directly the raw images, and if needed we refresh the product instead of fetching specific image ids * `product_image_gallery_view.dart`: minor refactoring * `product_image_other_page.dart`: replaced deprecated method * `product_image_server_button.dart`: now we may have directly the raw images, and if needed we refresh the product instead of fetching specific image ids * `product_image_viewer.dart`: replaced deprecated method * `pubspec.lock`: generated * `pubspec.yaml`: upgraded to off-dart 3.3.0 * `uploaded_image_gallery.dart`: now using `List<ProductImage>` as input
- Loading branch information
1 parent
03b747c
commit 89cea10
Showing
15 changed files
with
281 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/smooth_app/lib/background/background_task_product_change.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:openfoodfacts/openfoodfacts.dart'; | ||
|
||
/// Interface for background tasks that change a product. | ||
abstract class BackgroundTaskProductChange { | ||
/// Product change, as a minimal Product. | ||
Product getProductChange(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.