forked from openfoodfacts/smooth-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/#21 - scan now uses local database, for product look up and f…
…or its history New file: * `scan_page.dart`: helper class to be used on top of `AlternativeContinuousScanPage` and `ContinuousScanPage` Impacted files: * `alternative_continuous_scan_page.dart`: `ContinuousScanModel` is now initialized upstream by `ScanPage` * `continuous_scan_model.dart`: now a `ChangeNotifier`, uses a `ProductList` and database cache * `continuous_scan_page.dart`: `ContinuousScanModel` is now initialized upstream by `ScanPage` * `contribution_page.dart`: uses the new `ScanPage` widget instead of the 2 scan pages * `local_database.dart`: removed the dummy notify listener method * `main.dart`: uses the new `ScanPage` widget instead of the 2 scan pages * `personalized_ranking_page.dart`: now we use a `ProductList` as input * `product_list.dart`: added a `getProduct` method and a "scan list" identifier * `product_page.dart`: unrelated UI fixes * `product_query_page.dart`: slight refactoring * `smooth_it_model.dart`: now we use `ProductList` * `smooth_product_carousel.dart`: added the new "CACHED" product possibility; fixed an init bug
- Loading branch information
1 parent
cb7d803
commit 69c3dbf
Showing
13 changed files
with
413 additions
and
354 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
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.