From eb8ec60e3b35dd5f963d667edf8168e7b77cb4d3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Mar 2022 21:54:46 +0000 Subject: [PATCH 01/15] chore(develop): release 0.2.0 --- CHANGELOG.md | 163 ++++++++++++++++++++++++++++++++++++++++++++++++++- version.txt | 2 +- 2 files changed, 163 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d196ad85b42..85c7243b2fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,166 @@ # Changelog +## [0.2.0](https://github.com/openfoodfacts/smooth-app/compare/v0.1.0...v0.2.0) (2022-03-16) + + +### Features + +* [#1060](https://github.com/openfoodfacts/smooth-app/issues/1060) - new dev mode lenient/strong matching switch ([#1133](https://github.com/openfoodfacts/smooth-app/issues/1133)) ([af2e5c9](https://github.com/openfoodfacts/smooth-app/commit/af2e5c970d09f4ba3f886e51fceaf9ff59ff64f5)) +* [#1116](https://github.com/openfoodfacts/smooth-app/issues/1116) - first tab is now "good" for personalized ranking page ([#1123](https://github.com/openfoodfacts/smooth-app/issues/1123)) ([3ccbd29](https://github.com/openfoodfacts/smooth-app/commit/3ccbd29ba598f02a8e6d8424601b42c2fed28365)) +* [#1145](https://github.com/openfoodfacts/smooth-app/issues/1145) - added a preference for "test env host" ([#1204](https://github.com/openfoodfacts/smooth-app/issues/1204)) ([b16d050](https://github.com/openfoodfacts/smooth-app/commit/b16d050859c9f8aed0da3345ec05927052fd7826)) +* [#1160](https://github.com/openfoodfacts/smooth-app/issues/1160) - added a "delete account" option ([#1201](https://github.com/openfoodfacts/smooth-app/issues/1201)) ([21d7cf5](https://github.com/openfoodfacts/smooth-app/commit/21d7cf5f7ba7c858dae3bf14206ab29b5fdd9763)) +* [#1161](https://github.com/openfoodfacts/smooth-app/issues/1161) - created an "edit product" page ([#1164](https://github.com/openfoodfacts/smooth-app/issues/1164)) ([90c1f63](https://github.com/openfoodfacts/smooth-app/commit/90c1f639dd9586f579f1462a2e34c93104ab926c)) +* [#1161](https://github.com/openfoodfacts/smooth-app/issues/1161) - the edit product page now calls the edit nutrition page ([#1167](https://github.com/openfoodfacts/smooth-app/issues/1167)) ([dda3be8](https://github.com/openfoodfacts/smooth-app/commit/dda3be8a35bbc229059b70a7c60369ac583a36ec)) +* [#1177](https://github.com/openfoodfacts/smooth-app/issues/1177) - new camera image getter with cropping feature; dev mode ([#1184](https://github.com/openfoodfacts/smooth-app/issues/1184)) ([341765f](https://github.com/openfoodfacts/smooth-app/commit/341765fcd90dbd010fbe93afe0b2f0904ba7900a)) +* [#1185](https://github.com/openfoodfacts/smooth-app/issues/1185) - added the "splash screen until last moment" effect ([#1188](https://github.com/openfoodfacts/smooth-app/issues/1188)) ([e5be520](https://github.com/openfoodfacts/smooth-app/commit/e5be52069c381aeb8f3c8af2520f5b6190d5d27b)) +* [#41](https://github.com/openfoodfacts/smooth-app/issues/41) - now storing preference references (for the next app start) ([#1007](https://github.com/openfoodfacts/smooth-app/issues/1007)) ([fd4c395](https://github.com/openfoodfacts/smooth-app/commit/fd4c39538369824aa8720724d5a0469df12dee68)) +* [#470](https://github.com/openfoodfacts/smooth-app/issues/470) - hive instead of sqflite, and no more pantries and colors ([#717](https://github.com/openfoodfacts/smooth-app/issues/717)) ([5c7d148](https://github.com/openfoodfacts/smooth-app/commit/5c7d1485deb203ccc9265b23dd5c2c6d1ea67eaf)) +* [#501](https://github.com/openfoodfacts/smooth-app/issues/501) - added switches in preferences for crash and analytics reports ([#1207](https://github.com/openfoodfacts/smooth-app/issues/1207)) ([1dc1454](https://github.com/openfoodfacts/smooth-app/commit/1dc14544051dac37f58b873dc6895d5b81890a4a)) +* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - added "cancel" and "save" buttons, and serving size ([#908](https://github.com/openfoodfacts/smooth-app/issues/908)) ([0e0c7e2](https://github.com/openfoodfacts/smooth-app/commit/0e0c7e2084588e47a32ff8da13b9dd8617f756f2)) +* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - added a "nutrition edit page" ([#904](https://github.com/openfoodfacts/smooth-app/issues/904)) ([92ce872](https://github.com/openfoodfacts/smooth-app/commit/92ce8724bba2d05b7104b980788713928dcb989f)) +* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - nutrition page minor improvements ([#907](https://github.com/openfoodfacts/smooth-app/issues/907)) ([4da655d](https://github.com/openfoodfacts/smooth-app/commit/4da655d55e828a88321ba95e9b55a9dc01e60032)) +* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - refactors the display and almost saves the form with the API ([#910](https://github.com/openfoodfacts/smooth-app/issues/910)) ([165f518](https://github.com/openfoodfacts/smooth-app/commit/165f518cd4db7ee4927bd666cc2d43b1a02ca5d0)) +* [#657](https://github.com/openfoodfacts/smooth-app/issues/657) - nutriscore+ecoscore, then mandatory attributes, then groups and important attributes ([#658](https://github.com/openfoodfacts/smooth-app/issues/658)) ([09a21c3](https://github.com/openfoodfacts/smooth-app/commit/09a21c3b050180a32e361cf7583bb97ec2f45a7b)) +* [#657](https://github.com/openfoodfacts/smooth-app/issues/657) (2) - same behavior for label attribute when mandatory or not ([#665](https://github.com/openfoodfacts/smooth-app/issues/665)) ([2f6a38d](https://github.com/openfoodfacts/smooth-app/commit/2f6a38d8236c65e8ad015f3a87287e32435c49e5)) +* [#671](https://github.com/openfoodfacts/smooth-app/issues/671) - github magic trick ([da31f5c](https://github.com/openfoodfacts/smooth-app/commit/da31f5c74c07a5ff867cdfc6a9cc6931f803ab2b)) +* [#671](https://github.com/openfoodfacts/smooth-app/issues/671) - removed the "very important" attribute importance ([814cb23](https://github.com/openfoodfacts/smooth-app/commit/814cb236ff3b000b7bbecdc3f1aa119a6aaf5b12)) +* [#671](https://github.com/openfoodfacts/smooth-app/issues/671) - removed the "very important" attribute importance ([#672](https://github.com/openfoodfacts/smooth-app/issues/672)) ([69bdefb](https://github.com/openfoodfacts/smooth-app/commit/69bdefbaab9b9379c16ef94ec038d51df70f27d5)) +* [#678](https://github.com/openfoodfacts/smooth-app/issues/678) - added bottom navigation bar to product page ([#679](https://github.com/openfoodfacts/smooth-app/issues/679)) ([212dd31](https://github.com/openfoodfacts/smooth-app/commit/212dd31d9171af22a412287091a920db2bba271a)) +* [#681](https://github.com/openfoodfacts/smooth-app/issues/681) Stateful tabs ([#703](https://github.com/openfoodfacts/smooth-app/issues/703)) ([ca3739e](https://github.com/openfoodfacts/smooth-app/commit/ca3739ec7176e52f01b59913734e24e5455ce215)) +* [#682](https://github.com/openfoodfacts/smooth-app/issues/682) - add a "Clear all" menu item in the product history page ([#683](https://github.com/openfoodfacts/smooth-app/issues/683)) ([b672d2a](https://github.com/openfoodfacts/smooth-app/commit/b672d2a1108cb1966c21498df7b3c61475825e40)) +* [#796](https://github.com/openfoodfacts/smooth-app/issues/796) - added a "refresh products" button to history page ([#1192](https://github.com/openfoodfacts/smooth-app/issues/1192)) ([a452bff](https://github.com/openfoodfacts/smooth-app/commit/a452bffa054103df60a382e82ce86c3d2380e3d3)) +* [#798](https://github.com/openfoodfacts/smooth-app/issues/798) - now a unique page for preferences, in accordion ([24ef49b](https://github.com/openfoodfacts/smooth-app/commit/24ef49b0307b609eb0b0fc8ebdd18152a3eb6f70)) +* [#798](https://github.com/openfoodfacts/smooth-app/issues/798) - now a unique page for preferences, in accordion ([#820](https://github.com/openfoodfacts/smooth-app/issues/820)) ([5ba0310](https://github.com/openfoodfacts/smooth-app/commit/5ba03100675b29ad21336b8b692f7d5be28095e3)) +* [#798](https://github.com/openfoodfacts/smooth-app/issues/798) - simplification through abstraction ([d2b6a86](https://github.com/openfoodfacts/smooth-app/commit/d2b6a86ef06a878ed8f3e0ed709bc891cf45b218)) +* [#812](https://github.com/openfoodfacts/smooth-app/issues/812) - additional optional button at the bottom of the product page ([#1135](https://github.com/openfoodfacts/smooth-app/issues/1135)) ([376d826](https://github.com/openfoodfacts/smooth-app/commit/376d8267d85e69a4c11e1096280378b942fc2f87)) +* [#833](https://github.com/openfoodfacts/smooth-app/issues/833) - dev mode ([#834](https://github.com/openfoodfacts/smooth-app/issues/834)) ([0a267d8](https://github.com/openfoodfacts/smooth-app/commit/0a267d801764d836321305be1bc7e70bd6d60bd9)) +* [#848](https://github.com/openfoodfacts/smooth-app/issues/848) - dev mode - item that switches the QueryType to PROD and DEV ([#851](https://github.com/openfoodfacts/smooth-app/issues/851)) ([03be267](https://github.com/openfoodfacts/smooth-app/commit/03be267e56c78d17c2b30a29b2d6dfb093e3bdb3)) +* [#849](https://github.com/openfoodfacts/smooth-app/issues/849) - added country selector to preferences page ([#861](https://github.com/openfoodfacts/smooth-app/issues/861)) ([b90bbaf](https://github.com/openfoodfacts/smooth-app/commit/b90bbaf414dd72827a67e048a4c100b9fe254865)) +* [#870](https://github.com/openfoodfacts/smooth-app/issues/870) - new UI for attribute buttons and user preference titles ([#871](https://github.com/openfoodfacts/smooth-app/issues/871)) ([f1045c4](https://github.com/openfoodfacts/smooth-app/commit/f1045c4caceef113f186f6ad6d28994ebd57164e)) +* [#878](https://github.com/openfoodfacts/smooth-app/issues/878) - added a multiselect mode to product list page ([#1035](https://github.com/openfoodfacts/smooth-app/issues/1035)) ([44cd470](https://github.com/openfoodfacts/smooth-app/commit/44cd470dffbccd398408a7dd0cc59521a8177fbc)) +* [#879](https://github.com/openfoodfacts/smooth-app/issues/879) - added a "same category" button on product page ([#1057](https://github.com/openfoodfacts/smooth-app/issues/1057)) ([2101e6e](https://github.com/openfoodfacts/smooth-app/commit/2101e6e7c332d4efeef80fc241ea6346756bb228)) +* [#880](https://github.com/openfoodfacts/smooth-app/issues/880) - cosmetic changes and refactoring ([#985](https://github.com/openfoodfacts/smooth-app/issues/985)) ([e7ebbb7](https://github.com/openfoodfacts/smooth-app/commit/e7ebbb7b71dd91b9c837355caeb68a80ce857f74)) +* [#880](https://github.com/openfoodfacts/smooth-app/issues/880) - ranking page similar to mock-ups ([#984](https://github.com/openfoodfacts/smooth-app/issues/984)) ([e145883](https://github.com/openfoodfacts/smooth-app/commit/e145883e5d968196da9a8e4b8a69a42687929b4a)) +* [#931](https://github.com/openfoodfacts/smooth-app/issues/931) - added in dev mode a way to print product history ([#945](https://github.com/openfoodfacts/smooth-app/issues/945)) ([e862ba8](https://github.com/openfoodfacts/smooth-app/commit/e862ba825e3d38ee19b6f1a3b788ba99284cf01e)) +* [#931](https://github.com/openfoodfacts/smooth-app/issues/931) - displaying the history in dialog instead of log print ([#983](https://github.com/openfoodfacts/smooth-app/issues/983)) ([76f29c8](https://github.com/openfoodfacts/smooth-app/commit/76f29c861fb992373bc3e6f25f769807d877554c)) +* [#935](https://github.com/openfoodfacts/smooth-app/issues/935) - now we display localized (downloaded) data during onboarding ([#986](https://github.com/openfoodfacts/smooth-app/issues/986)) ([954449e](https://github.com/openfoodfacts/smooth-app/commit/954449e437ce0a848bd8313eb6eed0f6a8770d20)) +* [#944](https://github.com/openfoodfacts/smooth-app/issues/944) - added a category picker page to the temporary product button ([#1148](https://github.com/openfoodfacts/smooth-app/issues/1148)) ([08ead0d](https://github.com/openfoodfacts/smooth-app/commit/08ead0d2faaf9245c46d61e91e2cb295b31d7e8b)) +* [#954](https://github.com/openfoodfacts/smooth-app/issues/954) - actually saves nutrients on the BE and refreshes the local DB ([#1138](https://github.com/openfoodfacts/smooth-app/issues/1138)) ([4e62659](https://github.com/openfoodfacts/smooth-app/commit/4e626598e95979bd3933a750916058c1a1996794)) +* [#954](https://github.com/openfoodfacts/smooth-app/issues/954) - back to product after saving nutrition facts ([#1134](https://github.com/openfoodfacts/smooth-app/issues/1134)) ([6c60851](https://github.com/openfoodfacts/smooth-app/commit/6c60851f7a812a2e63a3d1ddb7f9e430c647bb28)) +* Add retry button in case of Internet Error ([#1105](https://github.com/openfoodfacts/smooth-app/issues/1105)) ([a1e8221](https://github.com/openfoodfacts/smooth-app/commit/a1e8221edcf965cb01fbcc3871a9a4302a1dd956)) +* Add SafeArea to ScannerOverlay page ([#1130](https://github.com/openfoodfacts/smooth-app/issues/1130)) ([efdba9c](https://github.com/openfoodfacts/smooth-app/commit/efdba9c477618b827edb2ea778ec860d092d0661)) +* Added a button to close questions ([#1209](https://github.com/openfoodfacts/smooth-app/issues/1209)) ([60f2ee6](https://github.com/openfoodfacts/smooth-app/commit/60f2ee6ecc19077734e727b01dbb53f1a4a07e74)) +* Added core usage logging ([#1147](https://github.com/openfoodfacts/smooth-app/issues/1147)) ([7783e41](https://github.com/openfoodfacts/smooth-app/commit/7783e412e2c937fff12f4ffc8237987252fbf8a2)) +* Added link to OpenFoodFacts donation page ([#969](https://github.com/openfoodfacts/smooth-app/issues/969)) ([f782c3e](https://github.com/openfoodfacts/smooth-app/commit/f782c3e6136daf6842b19819b3b159da5a2accbb)) +* Added manifest for profiling ([#1052](https://github.com/openfoodfacts/smooth-app/issues/1052)) ([b78b254](https://github.com/openfoodfacts/smooth-app/commit/b78b25414cda8a9e3b669da63accf89e349c71f1)) +* Allow slide up on product cards ([#1113](https://github.com/openfoodfacts/smooth-app/issues/1113)) ([7d1abfb](https://github.com/openfoodfacts/smooth-app/commit/7d1abfb298e63645a2559310fed319304feed437)) +* Allow smoothie password reset ([#750](https://github.com/openfoodfacts/smooth-app/issues/750)) ([9fd67cc](https://github.com/openfoodfacts/smooth-app/commit/9fd67cc88ec892cbd0b49b3ed2f3dfc7bf0ec968)) +* Allow support via email ([#914](https://github.com/openfoodfacts/smooth-app/issues/914)) ([894dec0](https://github.com/openfoodfacts/smooth-app/commit/894dec08d080c3a60027ebf5c9f442d0cb7884fe)) +* Better help email body ([#1110](https://github.com/openfoodfacts/smooth-app/issues/1110)) ([d92ccc8](https://github.com/openfoodfacts/smooth-app/commit/d92ccc8d104f778aed9a59eb764504c6b33db42d)) +* Better product image view ([#1122](https://github.com/openfoodfacts/smooth-app/issues/1122)) ([aa976c7](https://github.com/openfoodfacts/smooth-app/commit/aa976c734a4dc448b19d51b32ed6b6baffafb48b)) +* Better user management buttons in preferences ([#872](https://github.com/openfoodfacts/smooth-app/issues/872)) ([174b1f7](https://github.com/openfoodfacts/smooth-app/commit/174b1f73cc6945e56f87a3ffd249d9979a10a23c)) +* Implemented basic login ([#742](https://github.com/openfoodfacts/smooth-app/issues/742)) ([bc02b75](https://github.com/openfoodfacts/smooth-app/commit/bc02b75e413832a419f5a8521908b9f3a1ce3f5c)) +* Login page autofill support ([#749](https://github.com/openfoodfacts/smooth-app/issues/749)) ([282f0a7](https://github.com/openfoodfacts/smooth-app/commit/282f0a7d6f089b5b5d7eeb11597920461fc3e65b)) +* ML Kit scanner ([#893](https://github.com/openfoodfacts/smooth-app/issues/893)) ([4a85c62](https://github.com/openfoodfacts/smooth-app/commit/4a85c62af42be1dab396891566f46d4e60db3425)) +* new asset files ([#1132](https://github.com/openfoodfacts/smooth-app/issues/1132)) ([0f95d1b](https://github.com/openfoodfacts/smooth-app/commit/0f95d1bdc8f5c285314a72c23dbdefe49dc21875)) +* New image cropper (pure Flutter) ([#1063](https://github.com/openfoodfacts/smooth-app/issues/1063)) ([d066c22](https://github.com/openfoodfacts/smooth-app/commit/d066c22eda5922219b90da70291f87e53d6bd6f6)) +* now computing device id, used as app uuid in API queries ([#1064](https://github.com/openfoodfacts/smooth-app/issues/1064)) ([44b09e2](https://github.com/openfoodfacts/smooth-app/commit/44b09e2746abe60792156e1d1a329d4328775c9a)) +* refactoring getting ordered nutrients ([#1010](https://github.com/openfoodfacts/smooth-app/issues/1010)) ([d391906](https://github.com/openfoodfacts/smooth-app/commit/d39190622281214eb4ab2ce291377004f65c9d17)) +* Second onboarding page + navigation capability between pages ([#772](https://github.com/openfoodfacts/smooth-app/issues/772)) ([cfdaa4c](https://github.com/openfoodfacts/smooth-app/commit/cfdaa4c635bf819a0183b53ac7d9ed1ceb77a277)) +* Show buildNumber in about this app ([#968](https://github.com/openfoodfacts/smooth-app/issues/968)) ([e4d866f](https://github.com/openfoodfacts/smooth-app/commit/e4d866f7d7a6d4ed0386962326ac36de5c7a8570)) +* sign out confirmation step. Issue: [#884](https://github.com/openfoodfacts/smooth-app/issues/884) ([#979](https://github.com/openfoodfacts/smooth-app/issues/979)) ([fe682a6](https://github.com/openfoodfacts/smooth-app/commit/fe682a614a25bacfaa3a9a09f65c3290a9775098)) +* Updated the summary page ([#581](https://github.com/openfoodfacts/smooth-app/issues/581)) ([4d0ff34](https://github.com/openfoodfacts/smooth-app/commit/4d0ff3499ae9fea9d22bb068cd2e3a0472aae44f)) +* Use visibility_detector to detect if camera is open ([#730](https://github.com/openfoodfacts/smooth-app/issues/730)) ([572b441](https://github.com/openfoodfacts/smooth-app/commit/572b44181360cb3c95c49e08215a6b3269c06923)) + + +### Bug Fixes + +* [#1003](https://github.com/openfoodfacts/smooth-app/issues/1003) - onboarding product fallback is now 093270067481501 ([#1006](https://github.com/openfoodfacts/smooth-app/issues/1006)) ([e9913b1](https://github.com/openfoodfacts/smooth-app/commit/e9913b161a03636a3205dfe7e5cadc4e01bf81a5)) +* [#1013](https://github.com/openfoodfacts/smooth-app/issues/1013) - "knowledge images" can be displayed even with `null` with and height ([#1131](https://github.com/openfoodfacts/smooth-app/issues/1131)) ([4dcb9f5](https://github.com/openfoodfacts/smooth-app/commit/4dcb9f55d6d4797725389d382c27fd95e096362f)) +* [#1044](https://github.com/openfoodfacts/smooth-app/issues/1044) - now using a unique compatibility algorithm ([#1046](https://github.com/openfoodfacts/smooth-app/issues/1046)) ([9b9f655](https://github.com/openfoodfacts/smooth-app/commit/9b9f655755e0f6ca5da11c542b6dc1fa348aef79)) +* [#1048](https://github.com/openfoodfacts/smooth-app/issues/1048) - added the scanned product to history ([#1049](https://github.com/openfoodfacts/smooth-app/issues/1049)) ([a4f623a](https://github.com/openfoodfacts/smooth-app/commit/a4f623aeb92cd3fba4a19d87952d4376489b13d0)) +* [#1055](https://github.com/openfoodfacts/smooth-app/issues/1055) - shorter "history" title ([#1056](https://github.com/openfoodfacts/smooth-app/issues/1056)) ([554eb4d](https://github.com/openfoodfacts/smooth-app/commit/554eb4dc614011b43e328b6eda5ae58ba43fbdcb)) +* [#1094](https://github.com/openfoodfacts/smooth-app/issues/1094) - icons instead of unicode for score items ([#1104](https://github.com/openfoodfacts/smooth-app/issues/1104)) ([4198d41](https://github.com/openfoodfacts/smooth-app/commit/4198d41985abf23548208847bf1f28ffd22fa021)) +* [#1126](https://github.com/openfoodfacts/smooth-app/issues/1126) More appealing empty history screen ([#1212](https://github.com/openfoodfacts/smooth-app/issues/1212)) ([91978c1](https://github.com/openfoodfacts/smooth-app/commit/91978c13016ea1d387f2ce1959ba5ebee6c7e46b)) +* [#1155](https://github.com/openfoodfacts/smooth-app/issues/1155) - MissingPluginException (iOS scanner issue) ([#1210](https://github.com/openfoodfacts/smooth-app/issues/1210)) ([44e9096](https://github.com/openfoodfacts/smooth-app/commit/44e90969474a5f25d34554e889213da54b1c3698)) +* [#684](https://github.com/openfoodfacts/smooth-app/issues/684) - writing in white when in dark mode for score card ([#688](https://github.com/openfoodfacts/smooth-app/issues/688)) ([aec0df6](https://github.com/openfoodfacts/smooth-app/commit/aec0df6ba979b2b81f3ae697d91b3a690a7bd6ad)) +* [#687](https://github.com/openfoodfacts/smooth-app/issues/687) - safer product list load ([#689](https://github.com/openfoodfacts/smooth-app/issues/689)) ([3ebed5c](https://github.com/openfoodfacts/smooth-app/commit/3ebed5c49c4d2638bd94b680713490c07646454b)) +* [#687](https://github.com/openfoodfacts/smooth-app/issues/687) (2) - product lists loaded from db now only display actual products ([#696](https://github.com/openfoodfacts/smooth-app/issues/696)) ([a1012c1](https://github.com/openfoodfacts/smooth-app/commit/a1012c190b705f31a00bf69d3fc9a03e02a2b690)) +* [#691](https://github.com/openfoodfacts/smooth-app/issues/691) - regenerated golden screenshots for profile with bottom bar ([#692](https://github.com/openfoodfacts/smooth-app/issues/692)) ([85970d9](https://github.com/openfoodfacts/smooth-app/commit/85970d92ae8b4c7d2d457c2566eec97996d4a90c)) +* [#739](https://github.com/openfoodfacts/smooth-app/issues/739) vulnerable actions/checkout version ([#740](https://github.com/openfoodfacts/smooth-app/issues/740)) ([fe60bdd](https://github.com/openfoodfacts/smooth-app/commit/fe60bdd2b299e07699cf4ff451a700a255fc06df)) +* [#753](https://github.com/openfoodfacts/smooth-app/issues/753) - keyword search OK with non-ASCII characters ([#759](https://github.com/openfoodfacts/smooth-app/issues/759)) ([9c950b2](https://github.com/openfoodfacts/smooth-app/commit/9c950b21322ffca63be01005feb2a1c82ec54e0c)) +* [#754](https://github.com/openfoodfacts/smooth-app/issues/754) - display localized description for nova score ([#755](https://github.com/openfoodfacts/smooth-app/issues/755)) ([7ab5b83](https://github.com/openfoodfacts/smooth-app/commit/7ab5b83ee219db6a9b9e67411c9bc090bfc94c7b)) +* [#763](https://github.com/openfoodfacts/smooth-app/issues/763) - safer use of a distinct widget for attribute importance dialog ([#778](https://github.com/openfoodfacts/smooth-app/issues/778)) ([0ee7fb9](https://github.com/openfoodfacts/smooth-app/commit/0ee7fb970a74d641cd53bdda9153fda3a8827091)) +* [#767](https://github.com/openfoodfacts/smooth-app/issues/767) - display a progress gauge when downloading full pictures ([#803](https://github.com/openfoodfacts/smooth-app/issues/803)) ([b282511](https://github.com/openfoodfacts/smooth-app/commit/b282511219ef27a225c8165eb49b7662c2e7e1a4)) +* [#769](https://github.com/openfoodfacts/smooth-app/issues/769) - additional padding ([#822](https://github.com/openfoodfacts/smooth-app/issues/822)) ([0a95d6a](https://github.com/openfoodfacts/smooth-app/commit/0a95d6ace841e76f7ff1d834714ab2e01d02ab75)) +* [#771](https://github.com/openfoodfacts/smooth-app/issues/771) - now using translated categories; fixed "category filter" label ([#786](https://github.com/openfoodfacts/smooth-app/issues/786)) ([d33c806](https://github.com/openfoodfacts/smooth-app/commit/d33c8062a24f1a2f526dde94ca289ee9b098e623)) +* [#773](https://github.com/openfoodfacts/smooth-app/issues/773) - fixed width for title; default white color for svg in dark mode ([#785](https://github.com/openfoodfacts/smooth-app/issues/785)) ([6aa1b4e](https://github.com/openfoodfacts/smooth-app/commit/6aa1b4ed7c8c77dd6b308bf884113f9c6224fa54)) +* [#775](https://github.com/openfoodfacts/smooth-app/issues/775) - country code is lowercased for OpenFoodFactsCountry match ([#781](https://github.com/openfoodfacts/smooth-app/issues/781)) ([ba1e864](https://github.com/openfoodfacts/smooth-app/commit/ba1e86413558a5d4f7ee36e323cadd58b38bfb33)) +* [#788](https://github.com/openfoodfacts/smooth-app/issues/788) - same ranking FAB for history and search ([#793](https://github.com/openfoodfacts/smooth-app/issues/793)) ([f52d58d](https://github.com/openfoodfacts/smooth-app/commit/f52d58df5d88774c03281a2055bab2c375fc5d31)) +* [#790](https://github.com/openfoodfacts/smooth-app/issues/790) - "unknown product" and "unknown brand" instead of "???" ([#791](https://github.com/openfoodfacts/smooth-app/issues/791)) ([441df5e](https://github.com/openfoodfacts/smooth-app/commit/441df5e6e1ac385003b7b572f1ba1262991d5014)) +* [#794](https://github.com/openfoodfacts/smooth-app/issues/794) - localized compatibility labels ([#797](https://github.com/openfoodfacts/smooth-app/issues/797)) ([9c38f97](https://github.com/openfoodfacts/smooth-app/commit/9c38f976c2aeaa7ab7aee4417f9bed79a8026082)) +* [#799](https://github.com/openfoodfacts/smooth-app/issues/799) - now handling both svg and png files (for "Label" icons) ([#806](https://github.com/openfoodfacts/smooth-app/issues/806)) ([4e1cab5](https://github.com/openfoodfacts/smooth-app/commit/4e1cab5e40bf46342893514795a996f14851c5a2)) +* [#804](https://github.com/openfoodfacts/smooth-app/issues/804) - faster init using hive "lazy" box for products ([#809](https://github.com/openfoodfacts/smooth-app/issues/809)) ([636547f](https://github.com/openfoodfacts/smooth-app/commit/636547f61e7517181bd5f79754595f3ffb0466ad)) +* [#814](https://github.com/openfoodfacts/smooth-app/issues/814) - no more constraints for the welcome title ([#818](https://github.com/openfoodfacts/smooth-app/issues/818)) ([33903ad](https://github.com/openfoodfacts/smooth-app/commit/33903ad5f062e9786cc387ed7e7df6e686c412d4)) +* [#825](https://github.com/openfoodfacts/smooth-app/issues/825) - no more constraints on number of lines ([#829](https://github.com/openfoodfacts/smooth-app/issues/829)) ([dd523e9](https://github.com/openfoodfacts/smooth-app/commit/dd523e982b2b8d2589f7db898b1751156d637467)) +* [#828](https://github.com/openfoodfacts/smooth-app/issues/828) - no more duplicates of attribute groups ([#830](https://github.com/openfoodfacts/smooth-app/issues/830)) ([92961be](https://github.com/openfoodfacts/smooth-app/commit/92961bef8e3e98284e98a5e5de91d005513ce466)) +* [#835](https://github.com/openfoodfacts/smooth-app/issues/835) - null check before null check operator ([#852](https://github.com/openfoodfacts/smooth-app/issues/852)) ([2e3c972](https://github.com/openfoodfacts/smooth-app/commit/2e3c97222e84e5b010319c5767976bfb957f867c)) +* [#899](https://github.com/openfoodfacts/smooth-app/issues/899) - avoid to reload the product in onboarding ([#902](https://github.com/openfoodfacts/smooth-app/issues/902)) ([cb320e6](https://github.com/openfoodfacts/smooth-app/commit/cb320e600f327d21189ca804f36914ed4d594772)) +* added recent svg files to cache, with color ([#787](https://github.com/openfoodfacts/smooth-app/issues/787)) ([1384176](https://github.com/openfoodfacts/smooth-app/commit/138417614cb62f2ca95f2ab738f973763fc7b171)) +* Android embedding v2 fix ([d2c6217](https://github.com/openfoodfacts/smooth-app/commit/d2c6217077109fa5c4cbc16ff2a678f02f9bd037)) +* AppBar does not fit theme ([#1198](https://github.com/openfoodfacts/smooth-app/issues/1198)) ([622612b](https://github.com/openfoodfacts/smooth-app/commit/622612b9adf9db1516b355d5761a320635706cc5)) +* bug "Smooth Simple Button" in "SmoothAlertDialogue". issue [#993](https://github.com/openfoodfacts/smooth-app/issues/993) ([#994](https://github.com/openfoodfacts/smooth-app/issues/994)) ([8cbca14](https://github.com/openfoodfacts/smooth-app/commit/8cbca14a6d7b98a0205da9bbe17274cd7eae22cf)) +* Camera activation after native view + double camera init on first start ([#1027](https://github.com/openfoodfacts/smooth-app/issues/1027)) ([95b3275](https://github.com/openfoodfacts/smooth-app/commit/95b32753016f3516620c42f229cfa10bbf8865d1)) +* Camera fix ([#946](https://github.com/openfoodfacts/smooth-app/issues/946)) ([120bc18](https://github.com/openfoodfacts/smooth-app/commit/120bc180c60fca0e3cf8f6c06a155a6b24c34f4c)) +* Camera lockCaptureOrientation fix ([#1151](https://github.com/openfoodfacts/smooth-app/issues/1151)) ([4cdc437](https://github.com/openfoodfacts/smooth-app/commit/4cdc437a41985af31d95569142968fb396d7e89d)) +* Camera not activating directly ([#1125](https://github.com/openfoodfacts/smooth-app/issues/1125)) ([4ef945a](https://github.com/openfoodfacts/smooth-app/commit/4ef945a8c16742742a4d315d28bb1ea9a48065c3)) +* Camera performance ([#1028](https://github.com/openfoodfacts/smooth-app/issues/1028)) ([ab0a487](https://github.com/openfoodfacts/smooth-app/commit/ab0a487262e23d489243c9ed6964566bc73a47e6)) +* Camera state management ([#990](https://github.com/openfoodfacts/smooth-app/issues/990)) ([72a2f27](https://github.com/openfoodfacts/smooth-app/commit/72a2f276a4fb09024ee2296a5120bf5371fe90b5)) +* Carousel _CastError: Null check operator used on a null value ([#967](https://github.com/openfoodfacts/smooth-app/issues/967)) ([d1c2488](https://github.com/openfoodfacts/smooth-app/commit/d1c2488ec08d061dc145d5d85e1f87926abd4a96)) +* Close barcode scanner and free it's resources ([#1181](https://github.com/openfoodfacts/smooth-app/issues/1181)) ([d490682](https://github.com/openfoodfacts/smooth-app/commit/d490682a1d6fe253e5791c80052d397fd8316658)) +* contributors dialog ([#641](https://github.com/openfoodfacts/smooth-app/issues/641)) ([b7b7983](https://github.com/openfoodfacts/smooth-app/commit/b7b798342559abfaab6824227fd1aea586023b9c)) +* **country selector:** preselect the most likely country ([#934](https://github.com/openfoodfacts/smooth-app/issues/934)) ([d403138](https://github.com/openfoodfacts/smooth-app/commit/d4031382f9d609ef1ea38c43202cfe5a419f2e80)) +* Dart uuid generation ([#1071](https://github.com/openfoodfacts/smooth-app/issues/1071)) ([5c68cfc](https://github.com/openfoodfacts/smooth-app/commit/5c68cfc63a7304399537bc5ae428877afdfd50c6)) +* deprecated share package + analyzer warnings ([#656](https://github.com/openfoodfacts/smooth-app/issues/656)) ([61576de](https://github.com/openfoodfacts/smooth-app/commit/61576ded7128aa34b8ac5283532cced4872c8226)) +* Fastlane play store key overwrite fix ([#1086](https://github.com/openfoodfacts/smooth-app/issues/1086)) ([8c57968](https://github.com/openfoodfacts/smooth-app/commit/8c579681bca5c791462c81bffcaa62b19f36b8d3)) +* Fix iOS build ([#996](https://github.com/openfoodfacts/smooth-app/issues/996)) ([919f0a0](https://github.com/openfoodfacts/smooth-app/commit/919f0a0861f30e7247fb4e8d6bcf8efaa5caa19b)) +* Fix old flutter version for CI/CD ([#1017](https://github.com/openfoodfacts/smooth-app/issues/1017)) ([d620f09](https://github.com/openfoodfacts/smooth-app/commit/d620f090cf225db82c8523b6f90b87cc1969e1f1)) +* Flattened the color/dark mode settings ([#1195](https://github.com/openfoodfacts/smooth-app/issues/1195)) ([6c0cbb0](https://github.com/openfoodfacts/smooth-app/commit/6c0cbb003e0223e64cba8006e2201623abae0cf6)) +* Github actions cache name for forcing new version ([#1083](https://github.com/openfoodfacts/smooth-app/issues/1083)) ([345a7a8](https://github.com/openfoodfacts/smooth-app/commit/345a7a83cad87a69fc6bf0c425a88d5485dcdc9d)) +* golden screenshots and local database ([#951](https://github.com/openfoodfacts/smooth-app/issues/951)) ([4eccfbe](https://github.com/openfoodfacts/smooth-app/commit/4eccfbe3820041dea5e2c4f1cacd3d45b454dce7)) +* lifecycle refactoring ([#995](https://github.com/openfoodfacts/smooth-app/issues/995)) ([3d4bc59](https://github.com/openfoodfacts/smooth-app/commit/3d4bc59d2909bdbfb2b7a9543e3930b7d0dcd66b)) +* no longer using deprecated API method getKnowledgePanels ([#1066](https://github.com/openfoodfacts/smooth-app/issues/1066)) ([4dd0ab1](https://github.com/openfoodfacts/smooth-app/commit/4dd0ab1360557c611fa80901c9843e49791659a9)) +* not running Sentry in when in debug mode ([#708](https://github.com/openfoodfacts/smooth-app/issues/708)) ([173675a](https://github.com/openfoodfacts/smooth-app/commit/173675a5a02691899ee50d5462012ca838fcfd36)) +* Not starting fix ([#1153](https://github.com/openfoodfacts/smooth-app/issues/1153)) ([23e09bc](https://github.com/openfoodfacts/smooth-app/commit/23e09bca421dd210c47c00b2f726a56d15d9d62e)) +* Not starting sentry fix ([#1154](https://github.com/openfoodfacts/smooth-app/issues/1154)) ([17229d0](https://github.com/openfoodfacts/smooth-app/commit/17229d0bd3c68f9726e1e217dc5b2db899bd9187)) +* null crash in new product page with knowledge panels builder ([#675](https://github.com/openfoodfacts/smooth-app/issues/675)) ([76222ac](https://github.com/openfoodfacts/smooth-app/commit/76222ac7c106873ef233b42c82b823172305837a)) +* Null error when picking no picture ([#1124](https://github.com/openfoodfacts/smooth-app/issues/1124)) ([5d4a883](https://github.com/openfoodfacts/smooth-app/commit/5d4a883da50796ac54b9a9c304b9830693e66cec)) +* përkthimet e këqija shqip thyen "develop" ([#1224](https://github.com/openfoodfacts/smooth-app/issues/1224)) ([ca7be80](https://github.com/openfoodfacts/smooth-app/commit/ca7be80e37551068a13c7a1acf58766760da6826)) +* Plural translation ([#896](https://github.com/openfoodfacts/smooth-app/issues/896)) ([810ac43](https://github.com/openfoodfacts/smooth-app/commit/810ac43d6088881b14ff40e090555f3adab01745)) +* Pop loading dialog before build is finished ([#1182](https://github.com/openfoodfacts/smooth-app/issues/1182)) ([d7b36bd](https://github.com/openfoodfacts/smooth-app/commit/d7b36bd7ea899cabbe87c0f3f1da7f96f2e93fec)) +* product compatibility score ([#858](https://github.com/openfoodfacts/smooth-app/issues/858)) ([41d45d1](https://github.com/openfoodfacts/smooth-app/commit/41d45d1c4f4a818a912d44fb38c1d90735ffe823)) +* Refresh product on image upload from new product page ([#1039](https://github.com/openfoodfacts/smooth-app/issues/1039)) ([173b7fc](https://github.com/openfoodfacts/smooth-app/commit/173b7fcccb172785df7ae9bbf531aeb5db0fc41f)) +* Remove camera controller listener ([278e9e8](https://github.com/openfoodfacts/smooth-app/commit/278e9e8640aca05a372b4498472448bbb9b1a66d)) +* Removed deprecated SplashScreenDrawable api ([#710](https://github.com/openfoodfacts/smooth-app/issues/710)) ([692c817](https://github.com/openfoodfacts/smooth-app/commit/692c81776745167bb6254e7561c9e8ad43217e95)) +* required visibility configuration for opening links ([#695](https://github.com/openfoodfacts/smooth-app/issues/695)) ([94b6c30](https://github.com/openfoodfacts/smooth-app/commit/94b6c3010a60c7333626e8c652564a844068a91c)) +* Reset password not initialized fix ([#758](https://github.com/openfoodfacts/smooth-app/issues/758)) ([1454fbc](https://github.com/openfoodfacts/smooth-app/commit/1454fbc6eea77f4bfa36a319da05e7af67b9caac)) +* Return Unknown compatibility when needed ([#718](https://github.com/openfoodfacts/smooth-app/issues/718)) ([c60fb7f](https://github.com/openfoodfacts/smooth-app/commit/c60fb7fa8888dff276a0ed312d5a56e922b9dd96)) +* Scanner buttons not updated ([#1140](https://github.com/openfoodfacts/smooth-app/issues/1140)) ([000c2be](https://github.com/openfoodfacts/smooth-app/commit/000c2bed99a5736a172dd772e58797cdafb17963)) +* Scanner preview over other widgets fix ([#939](https://github.com/openfoodfacts/smooth-app/issues/939)) ([c5ea875](https://github.com/openfoodfacts/smooth-app/commit/c5ea875588106642bf8934a34029de22e86b5930)) +* semantic pr for translations ([#779](https://github.com/openfoodfacts/smooth-app/issues/779)) ([5692565](https://github.com/openfoodfacts/smooth-app/commit/569256573485024a5d544f2f6ca60673bbf6ee92)) +* sign up colors were ko for title and terms (day mode) ([#810](https://github.com/openfoodfacts/smooth-app/issues/810)) ([468875b](https://github.com/openfoodfacts/smooth-app/commit/468875bdbfacf81f2a4c475dd3a7095f2128e25a)) +* SmoothSimpleButton reactive to schema [#591](https://github.com/openfoodfacts/smooth-app/issues/591) ([#624](https://github.com/openfoodfacts/smooth-app/issues/624)) ([ff8858e](https://github.com/openfoodfacts/smooth-app/commit/ff8858e27d561b368a31a94d194c998d82049629)) +* summary card with no category ([#1107](https://github.com/openfoodfacts/smooth-app/issues/1107)) ([f1777e8](https://github.com/openfoodfacts/smooth-app/commit/f1777e807b8e081a4c608e543ff820f31bdf4382)) +* Switch dark mode color ([#1213](https://github.com/openfoodfacts/smooth-app/issues/1213)) ([7a7b28b](https://github.com/openfoodfacts/smooth-app/commit/7a7b28bbd03135c6d1c7516000a8222f0c555926)) +* translated preferences from init ([#789](https://github.com/openfoodfacts/smooth-app/issues/789)) ([c719e9a](https://github.com/openfoodfacts/smooth-app/commit/c719e9a8c43f8e886a36969c3392a1d52f91f1d4)) +* Unnecessary keyboard openings when not on the page anymore ([#845](https://github.com/openfoodfacts/smooth-app/issues/845)) ([c24a4b7](https://github.com/openfoodfacts/smooth-app/commit/c24a4b704d941dd84ed4e8e5ed84099ebe6b22e1)) +* unnecessary SmoothAppGetLanguage rebuilds ([#1219](https://github.com/openfoodfacts/smooth-app/issues/1219)) ([3215676](https://github.com/openfoodfacts/smooth-app/commit/3215676ddeb171ce1958743da5a683caec75a981)) +* Update golden tests ([#940](https://github.com/openfoodfacts/smooth-app/issues/940)) ([f55054c](https://github.com/openfoodfacts/smooth-app/commit/f55054c79a4036a617cc6b1d4fbcf33d62bba96c)) +* Weird box artefact on pressing table ([#1203](https://github.com/openfoodfacts/smooth-app/issues/1203)) ([69294b7](https://github.com/openfoodfacts/smooth-app/commit/69294b7f2d3faf098a9eb9192aea32b07c4781ab)) +* Wrong colored create account button ([#1191](https://github.com/openfoodfacts/smooth-app/issues/1191)) ([4ad8232](https://github.com/openfoodfacts/smooth-app/commit/4ad823267253a9b2e9fc2cc89af46eb5ebf870d4)) +* Wrong item in settings subtitle String ([781a676](https://github.com/openfoodfacts/smooth-app/commit/781a6761dda40b67b7f0599566363d7a45bea3a6)) +* Wrong null check in scanner ([#724](https://github.com/openfoodfacts/smooth-app/issues/724)) ([c2d3b85](https://github.com/openfoodfacts/smooth-app/commit/c2d3b85a3b44e8e3cda182c87ff81129993c0b75)) + ## [0.1.0](https://www.github.com/openfoodfacts/smooth-app/compare/v0.0.2...v0.1.0) (2021-11-27) @@ -22,4 +183,4 @@ * [#691](https://www.github.com/openfoodfacts/smooth-app/issues/691) - regenerated golden screenshots for profile with bottom bar ([#692](https://www.github.com/openfoodfacts/smooth-app/issues/692)) ([85970d9](https://www.github.com/openfoodfacts/smooth-app/commit/85970d92ae8b4c7d2d457c2566eec97996d4a90c)) * contributors dialog ([#641](https://www.github.com/openfoodfacts/smooth-app/issues/641)) ([b7b7983](https://www.github.com/openfoodfacts/smooth-app/commit/b7b798342559abfaab6824227fd1aea586023b9c)) * deprecated share package + analyzer warnings ([#656](https://www.github.com/openfoodfacts/smooth-app/issues/656)) ([61576de](https://www.github.com/openfoodfacts/smooth-app/commit/61576ded7128aa34b8ac5283532cced4872c8226)) -* null crash in new product page with knowledge panels builder ([#675](https://www.github.com/openfoodfacts/smooth-app/issues/675)) ([76222ac](https://www.github.com/openfoodfacts/smooth-app/commit/76222ac7c106873ef233b42c82b823172305837a)) \ No newline at end of file +* null crash in new product page with knowledge panels builder ([#675](https://www.github.com/openfoodfacts/smooth-app/issues/675)) ([76222ac](https://www.github.com/openfoodfacts/smooth-app/commit/76222ac7c106873ef233b42c82b823172305837a)) diff --git a/version.txt b/version.txt index 6e8bf73aa55..0ea3a944b39 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.1.0 +0.2.0 From e330e7dc0c9a764515e63deefd504cee404e38c1 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Thu, 17 Mar 2022 18:51:05 +0545 Subject: [PATCH 02/15] added dark theme on personalized page --- .../lib/pages/personalized_ranking_page.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/smooth_app/lib/pages/personalized_ranking_page.dart b/packages/smooth_app/lib/pages/personalized_ranking_page.dart index cb6d187f08e..12e034659c5 100644 --- a/packages/smooth_app/lib/pages/personalized_ranking_page.dart +++ b/packages/smooth_app/lib/pages/personalized_ranking_page.dart @@ -54,6 +54,8 @@ class _PersonalizedRankingPageState extends State { context.watch(); final LocalDatabase localDatabase = context.watch(); final DaoProductList daoProductList = DaoProductList(localDatabase); + final ThemeData themeData = Theme.of(context); + final ColorScheme colorScheme = Theme.of(context).colorScheme; _model.refresh( widget.products, productPreferences, @@ -88,8 +90,8 @@ class _PersonalizedRankingPageState extends State { initialIndex: _ORDERED_MATCH_TABS.indexOf(MatchTab.YES), child: Scaffold( appBar: AppBar( - backgroundColor: Colors.white, - foregroundColor: Colors.black, + backgroundColor: colorScheme.background, + foregroundColor: colorScheme.onBackground, bottom: TabBar( unselectedLabelStyle: const TextStyle( fontSize: 15, @@ -111,7 +113,7 @@ class _PersonalizedRankingPageState extends State { (final int index) => Tab( child: Text( titles[index], - style: TextStyle(color: colors[index]), + style: index==0?TextStyle(color:themeData.hintColor ):TextStyle(color: colors[index]), ), ), ), @@ -121,8 +123,10 @@ class _PersonalizedRankingPageState extends State { mainAxisSize: MainAxisSize.max, children: [ Flexible( - child: Text(widget.title, overflow: TextOverflow.fade), - ), + child: Text( + widget.title, + overflow: TextOverflow.fade, + )), ], ), ), From 3dcdb0d230462899a56d28a0431376af88196702 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Fri, 18 Mar 2022 07:43:19 +0545 Subject: [PATCH 03/15] Certain Changes --- .../lib/pages/personalized_ranking_page.dart | 15 +++++++++------ packages/smooth_app/pubspec.lock | 6 +++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/smooth_app/lib/pages/personalized_ranking_page.dart b/packages/smooth_app/lib/pages/personalized_ranking_page.dart index 12e034659c5..838af776266 100644 --- a/packages/smooth_app/lib/pages/personalized_ranking_page.dart +++ b/packages/smooth_app/lib/pages/personalized_ranking_page.dart @@ -55,7 +55,7 @@ class _PersonalizedRankingPageState extends State { final LocalDatabase localDatabase = context.watch(); final DaoProductList daoProductList = DaoProductList(localDatabase); final ThemeData themeData = Theme.of(context); - final ColorScheme colorScheme = Theme.of(context).colorScheme; + final ColorScheme colorScheme = themeData.colorScheme; _model.refresh( widget.products, productPreferences, @@ -113,7 +113,9 @@ class _PersonalizedRankingPageState extends State { (final int index) => Tab( child: Text( titles[index], - style: index==0?TextStyle(color:themeData.hintColor ):TextStyle(color: colors[index]), + style: index == 0 + ? TextStyle(color: themeData.hintColor) + : TextStyle(color: colors[index]), ), ), ), @@ -123,10 +125,11 @@ class _PersonalizedRankingPageState extends State { mainAxisSize: MainAxisSize.max, children: [ Flexible( - child: Text( - widget.title, - overflow: TextOverflow.fade, - )), + child: Text( + widget.title, + overflow: TextOverflow.fade, + ), + ), ], ), ), diff --git a/packages/smooth_app/pubspec.lock b/packages/smooth_app/pubspec.lock index c3df143d264..960f6a87e42 100644 --- a/packages/smooth_app/pubspec.lock +++ b/packages/smooth_app/pubspec.lock @@ -357,13 +357,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.2" - google_ml_barcode_scanner: + google_ml_kit: dependency: "direct main" description: - name: google_ml_barcode_scanner + name: google_ml_kit url: "https://pub.dartlang.org" source: hosted - version: "0.0.2" + version: "0.6.0" hive: dependency: "direct main" description: From deb4b287b9074ccf77cad5efa2d6c99422a04572 Mon Sep 17 00:00:00 2001 From: Marvin M <39344769+M123-dev@users.noreply.github.com> Date: Fri, 18 Mar 2022 10:21:49 +0100 Subject: [PATCH 04/15] Reverted changelog changes --- CHANGELOG.md | 161 --------------------------------------------------- 1 file changed, 161 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85c7243b2fa..f15e1c2efd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,166 +1,5 @@ # Changelog -## [0.2.0](https://github.com/openfoodfacts/smooth-app/compare/v0.1.0...v0.2.0) (2022-03-16) - - -### Features - -* [#1060](https://github.com/openfoodfacts/smooth-app/issues/1060) - new dev mode lenient/strong matching switch ([#1133](https://github.com/openfoodfacts/smooth-app/issues/1133)) ([af2e5c9](https://github.com/openfoodfacts/smooth-app/commit/af2e5c970d09f4ba3f886e51fceaf9ff59ff64f5)) -* [#1116](https://github.com/openfoodfacts/smooth-app/issues/1116) - first tab is now "good" for personalized ranking page ([#1123](https://github.com/openfoodfacts/smooth-app/issues/1123)) ([3ccbd29](https://github.com/openfoodfacts/smooth-app/commit/3ccbd29ba598f02a8e6d8424601b42c2fed28365)) -* [#1145](https://github.com/openfoodfacts/smooth-app/issues/1145) - added a preference for "test env host" ([#1204](https://github.com/openfoodfacts/smooth-app/issues/1204)) ([b16d050](https://github.com/openfoodfacts/smooth-app/commit/b16d050859c9f8aed0da3345ec05927052fd7826)) -* [#1160](https://github.com/openfoodfacts/smooth-app/issues/1160) - added a "delete account" option ([#1201](https://github.com/openfoodfacts/smooth-app/issues/1201)) ([21d7cf5](https://github.com/openfoodfacts/smooth-app/commit/21d7cf5f7ba7c858dae3bf14206ab29b5fdd9763)) -* [#1161](https://github.com/openfoodfacts/smooth-app/issues/1161) - created an "edit product" page ([#1164](https://github.com/openfoodfacts/smooth-app/issues/1164)) ([90c1f63](https://github.com/openfoodfacts/smooth-app/commit/90c1f639dd9586f579f1462a2e34c93104ab926c)) -* [#1161](https://github.com/openfoodfacts/smooth-app/issues/1161) - the edit product page now calls the edit nutrition page ([#1167](https://github.com/openfoodfacts/smooth-app/issues/1167)) ([dda3be8](https://github.com/openfoodfacts/smooth-app/commit/dda3be8a35bbc229059b70a7c60369ac583a36ec)) -* [#1177](https://github.com/openfoodfacts/smooth-app/issues/1177) - new camera image getter with cropping feature; dev mode ([#1184](https://github.com/openfoodfacts/smooth-app/issues/1184)) ([341765f](https://github.com/openfoodfacts/smooth-app/commit/341765fcd90dbd010fbe93afe0b2f0904ba7900a)) -* [#1185](https://github.com/openfoodfacts/smooth-app/issues/1185) - added the "splash screen until last moment" effect ([#1188](https://github.com/openfoodfacts/smooth-app/issues/1188)) ([e5be520](https://github.com/openfoodfacts/smooth-app/commit/e5be52069c381aeb8f3c8af2520f5b6190d5d27b)) -* [#41](https://github.com/openfoodfacts/smooth-app/issues/41) - now storing preference references (for the next app start) ([#1007](https://github.com/openfoodfacts/smooth-app/issues/1007)) ([fd4c395](https://github.com/openfoodfacts/smooth-app/commit/fd4c39538369824aa8720724d5a0469df12dee68)) -* [#470](https://github.com/openfoodfacts/smooth-app/issues/470) - hive instead of sqflite, and no more pantries and colors ([#717](https://github.com/openfoodfacts/smooth-app/issues/717)) ([5c7d148](https://github.com/openfoodfacts/smooth-app/commit/5c7d1485deb203ccc9265b23dd5c2c6d1ea67eaf)) -* [#501](https://github.com/openfoodfacts/smooth-app/issues/501) - added switches in preferences for crash and analytics reports ([#1207](https://github.com/openfoodfacts/smooth-app/issues/1207)) ([1dc1454](https://github.com/openfoodfacts/smooth-app/commit/1dc14544051dac37f58b873dc6895d5b81890a4a)) -* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - added "cancel" and "save" buttons, and serving size ([#908](https://github.com/openfoodfacts/smooth-app/issues/908)) ([0e0c7e2](https://github.com/openfoodfacts/smooth-app/commit/0e0c7e2084588e47a32ff8da13b9dd8617f756f2)) -* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - added a "nutrition edit page" ([#904](https://github.com/openfoodfacts/smooth-app/issues/904)) ([92ce872](https://github.com/openfoodfacts/smooth-app/commit/92ce8724bba2d05b7104b980788713928dcb989f)) -* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - nutrition page minor improvements ([#907](https://github.com/openfoodfacts/smooth-app/issues/907)) ([4da655d](https://github.com/openfoodfacts/smooth-app/commit/4da655d55e828a88321ba95e9b55a9dc01e60032)) -* [#511](https://github.com/openfoodfacts/smooth-app/issues/511) - refactors the display and almost saves the form with the API ([#910](https://github.com/openfoodfacts/smooth-app/issues/910)) ([165f518](https://github.com/openfoodfacts/smooth-app/commit/165f518cd4db7ee4927bd666cc2d43b1a02ca5d0)) -* [#657](https://github.com/openfoodfacts/smooth-app/issues/657) - nutriscore+ecoscore, then mandatory attributes, then groups and important attributes ([#658](https://github.com/openfoodfacts/smooth-app/issues/658)) ([09a21c3](https://github.com/openfoodfacts/smooth-app/commit/09a21c3b050180a32e361cf7583bb97ec2f45a7b)) -* [#657](https://github.com/openfoodfacts/smooth-app/issues/657) (2) - same behavior for label attribute when mandatory or not ([#665](https://github.com/openfoodfacts/smooth-app/issues/665)) ([2f6a38d](https://github.com/openfoodfacts/smooth-app/commit/2f6a38d8236c65e8ad015f3a87287e32435c49e5)) -* [#671](https://github.com/openfoodfacts/smooth-app/issues/671) - github magic trick ([da31f5c](https://github.com/openfoodfacts/smooth-app/commit/da31f5c74c07a5ff867cdfc6a9cc6931f803ab2b)) -* [#671](https://github.com/openfoodfacts/smooth-app/issues/671) - removed the "very important" attribute importance ([814cb23](https://github.com/openfoodfacts/smooth-app/commit/814cb236ff3b000b7bbecdc3f1aa119a6aaf5b12)) -* [#671](https://github.com/openfoodfacts/smooth-app/issues/671) - removed the "very important" attribute importance ([#672](https://github.com/openfoodfacts/smooth-app/issues/672)) ([69bdefb](https://github.com/openfoodfacts/smooth-app/commit/69bdefbaab9b9379c16ef94ec038d51df70f27d5)) -* [#678](https://github.com/openfoodfacts/smooth-app/issues/678) - added bottom navigation bar to product page ([#679](https://github.com/openfoodfacts/smooth-app/issues/679)) ([212dd31](https://github.com/openfoodfacts/smooth-app/commit/212dd31d9171af22a412287091a920db2bba271a)) -* [#681](https://github.com/openfoodfacts/smooth-app/issues/681) Stateful tabs ([#703](https://github.com/openfoodfacts/smooth-app/issues/703)) ([ca3739e](https://github.com/openfoodfacts/smooth-app/commit/ca3739ec7176e52f01b59913734e24e5455ce215)) -* [#682](https://github.com/openfoodfacts/smooth-app/issues/682) - add a "Clear all" menu item in the product history page ([#683](https://github.com/openfoodfacts/smooth-app/issues/683)) ([b672d2a](https://github.com/openfoodfacts/smooth-app/commit/b672d2a1108cb1966c21498df7b3c61475825e40)) -* [#796](https://github.com/openfoodfacts/smooth-app/issues/796) - added a "refresh products" button to history page ([#1192](https://github.com/openfoodfacts/smooth-app/issues/1192)) ([a452bff](https://github.com/openfoodfacts/smooth-app/commit/a452bffa054103df60a382e82ce86c3d2380e3d3)) -* [#798](https://github.com/openfoodfacts/smooth-app/issues/798) - now a unique page for preferences, in accordion ([24ef49b](https://github.com/openfoodfacts/smooth-app/commit/24ef49b0307b609eb0b0fc8ebdd18152a3eb6f70)) -* [#798](https://github.com/openfoodfacts/smooth-app/issues/798) - now a unique page for preferences, in accordion ([#820](https://github.com/openfoodfacts/smooth-app/issues/820)) ([5ba0310](https://github.com/openfoodfacts/smooth-app/commit/5ba03100675b29ad21336b8b692f7d5be28095e3)) -* [#798](https://github.com/openfoodfacts/smooth-app/issues/798) - simplification through abstraction ([d2b6a86](https://github.com/openfoodfacts/smooth-app/commit/d2b6a86ef06a878ed8f3e0ed709bc891cf45b218)) -* [#812](https://github.com/openfoodfacts/smooth-app/issues/812) - additional optional button at the bottom of the product page ([#1135](https://github.com/openfoodfacts/smooth-app/issues/1135)) ([376d826](https://github.com/openfoodfacts/smooth-app/commit/376d8267d85e69a4c11e1096280378b942fc2f87)) -* [#833](https://github.com/openfoodfacts/smooth-app/issues/833) - dev mode ([#834](https://github.com/openfoodfacts/smooth-app/issues/834)) ([0a267d8](https://github.com/openfoodfacts/smooth-app/commit/0a267d801764d836321305be1bc7e70bd6d60bd9)) -* [#848](https://github.com/openfoodfacts/smooth-app/issues/848) - dev mode - item that switches the QueryType to PROD and DEV ([#851](https://github.com/openfoodfacts/smooth-app/issues/851)) ([03be267](https://github.com/openfoodfacts/smooth-app/commit/03be267e56c78d17c2b30a29b2d6dfb093e3bdb3)) -* [#849](https://github.com/openfoodfacts/smooth-app/issues/849) - added country selector to preferences page ([#861](https://github.com/openfoodfacts/smooth-app/issues/861)) ([b90bbaf](https://github.com/openfoodfacts/smooth-app/commit/b90bbaf414dd72827a67e048a4c100b9fe254865)) -* [#870](https://github.com/openfoodfacts/smooth-app/issues/870) - new UI for attribute buttons and user preference titles ([#871](https://github.com/openfoodfacts/smooth-app/issues/871)) ([f1045c4](https://github.com/openfoodfacts/smooth-app/commit/f1045c4caceef113f186f6ad6d28994ebd57164e)) -* [#878](https://github.com/openfoodfacts/smooth-app/issues/878) - added a multiselect mode to product list page ([#1035](https://github.com/openfoodfacts/smooth-app/issues/1035)) ([44cd470](https://github.com/openfoodfacts/smooth-app/commit/44cd470dffbccd398408a7dd0cc59521a8177fbc)) -* [#879](https://github.com/openfoodfacts/smooth-app/issues/879) - added a "same category" button on product page ([#1057](https://github.com/openfoodfacts/smooth-app/issues/1057)) ([2101e6e](https://github.com/openfoodfacts/smooth-app/commit/2101e6e7c332d4efeef80fc241ea6346756bb228)) -* [#880](https://github.com/openfoodfacts/smooth-app/issues/880) - cosmetic changes and refactoring ([#985](https://github.com/openfoodfacts/smooth-app/issues/985)) ([e7ebbb7](https://github.com/openfoodfacts/smooth-app/commit/e7ebbb7b71dd91b9c837355caeb68a80ce857f74)) -* [#880](https://github.com/openfoodfacts/smooth-app/issues/880) - ranking page similar to mock-ups ([#984](https://github.com/openfoodfacts/smooth-app/issues/984)) ([e145883](https://github.com/openfoodfacts/smooth-app/commit/e145883e5d968196da9a8e4b8a69a42687929b4a)) -* [#931](https://github.com/openfoodfacts/smooth-app/issues/931) - added in dev mode a way to print product history ([#945](https://github.com/openfoodfacts/smooth-app/issues/945)) ([e862ba8](https://github.com/openfoodfacts/smooth-app/commit/e862ba825e3d38ee19b6f1a3b788ba99284cf01e)) -* [#931](https://github.com/openfoodfacts/smooth-app/issues/931) - displaying the history in dialog instead of log print ([#983](https://github.com/openfoodfacts/smooth-app/issues/983)) ([76f29c8](https://github.com/openfoodfacts/smooth-app/commit/76f29c861fb992373bc3e6f25f769807d877554c)) -* [#935](https://github.com/openfoodfacts/smooth-app/issues/935) - now we display localized (downloaded) data during onboarding ([#986](https://github.com/openfoodfacts/smooth-app/issues/986)) ([954449e](https://github.com/openfoodfacts/smooth-app/commit/954449e437ce0a848bd8313eb6eed0f6a8770d20)) -* [#944](https://github.com/openfoodfacts/smooth-app/issues/944) - added a category picker page to the temporary product button ([#1148](https://github.com/openfoodfacts/smooth-app/issues/1148)) ([08ead0d](https://github.com/openfoodfacts/smooth-app/commit/08ead0d2faaf9245c46d61e91e2cb295b31d7e8b)) -* [#954](https://github.com/openfoodfacts/smooth-app/issues/954) - actually saves nutrients on the BE and refreshes the local DB ([#1138](https://github.com/openfoodfacts/smooth-app/issues/1138)) ([4e62659](https://github.com/openfoodfacts/smooth-app/commit/4e626598e95979bd3933a750916058c1a1996794)) -* [#954](https://github.com/openfoodfacts/smooth-app/issues/954) - back to product after saving nutrition facts ([#1134](https://github.com/openfoodfacts/smooth-app/issues/1134)) ([6c60851](https://github.com/openfoodfacts/smooth-app/commit/6c60851f7a812a2e63a3d1ddb7f9e430c647bb28)) -* Add retry button in case of Internet Error ([#1105](https://github.com/openfoodfacts/smooth-app/issues/1105)) ([a1e8221](https://github.com/openfoodfacts/smooth-app/commit/a1e8221edcf965cb01fbcc3871a9a4302a1dd956)) -* Add SafeArea to ScannerOverlay page ([#1130](https://github.com/openfoodfacts/smooth-app/issues/1130)) ([efdba9c](https://github.com/openfoodfacts/smooth-app/commit/efdba9c477618b827edb2ea778ec860d092d0661)) -* Added a button to close questions ([#1209](https://github.com/openfoodfacts/smooth-app/issues/1209)) ([60f2ee6](https://github.com/openfoodfacts/smooth-app/commit/60f2ee6ecc19077734e727b01dbb53f1a4a07e74)) -* Added core usage logging ([#1147](https://github.com/openfoodfacts/smooth-app/issues/1147)) ([7783e41](https://github.com/openfoodfacts/smooth-app/commit/7783e412e2c937fff12f4ffc8237987252fbf8a2)) -* Added link to OpenFoodFacts donation page ([#969](https://github.com/openfoodfacts/smooth-app/issues/969)) ([f782c3e](https://github.com/openfoodfacts/smooth-app/commit/f782c3e6136daf6842b19819b3b159da5a2accbb)) -* Added manifest for profiling ([#1052](https://github.com/openfoodfacts/smooth-app/issues/1052)) ([b78b254](https://github.com/openfoodfacts/smooth-app/commit/b78b25414cda8a9e3b669da63accf89e349c71f1)) -* Allow slide up on product cards ([#1113](https://github.com/openfoodfacts/smooth-app/issues/1113)) ([7d1abfb](https://github.com/openfoodfacts/smooth-app/commit/7d1abfb298e63645a2559310fed319304feed437)) -* Allow smoothie password reset ([#750](https://github.com/openfoodfacts/smooth-app/issues/750)) ([9fd67cc](https://github.com/openfoodfacts/smooth-app/commit/9fd67cc88ec892cbd0b49b3ed2f3dfc7bf0ec968)) -* Allow support via email ([#914](https://github.com/openfoodfacts/smooth-app/issues/914)) ([894dec0](https://github.com/openfoodfacts/smooth-app/commit/894dec08d080c3a60027ebf5c9f442d0cb7884fe)) -* Better help email body ([#1110](https://github.com/openfoodfacts/smooth-app/issues/1110)) ([d92ccc8](https://github.com/openfoodfacts/smooth-app/commit/d92ccc8d104f778aed9a59eb764504c6b33db42d)) -* Better product image view ([#1122](https://github.com/openfoodfacts/smooth-app/issues/1122)) ([aa976c7](https://github.com/openfoodfacts/smooth-app/commit/aa976c734a4dc448b19d51b32ed6b6baffafb48b)) -* Better user management buttons in preferences ([#872](https://github.com/openfoodfacts/smooth-app/issues/872)) ([174b1f7](https://github.com/openfoodfacts/smooth-app/commit/174b1f73cc6945e56f87a3ffd249d9979a10a23c)) -* Implemented basic login ([#742](https://github.com/openfoodfacts/smooth-app/issues/742)) ([bc02b75](https://github.com/openfoodfacts/smooth-app/commit/bc02b75e413832a419f5a8521908b9f3a1ce3f5c)) -* Login page autofill support ([#749](https://github.com/openfoodfacts/smooth-app/issues/749)) ([282f0a7](https://github.com/openfoodfacts/smooth-app/commit/282f0a7d6f089b5b5d7eeb11597920461fc3e65b)) -* ML Kit scanner ([#893](https://github.com/openfoodfacts/smooth-app/issues/893)) ([4a85c62](https://github.com/openfoodfacts/smooth-app/commit/4a85c62af42be1dab396891566f46d4e60db3425)) -* new asset files ([#1132](https://github.com/openfoodfacts/smooth-app/issues/1132)) ([0f95d1b](https://github.com/openfoodfacts/smooth-app/commit/0f95d1bdc8f5c285314a72c23dbdefe49dc21875)) -* New image cropper (pure Flutter) ([#1063](https://github.com/openfoodfacts/smooth-app/issues/1063)) ([d066c22](https://github.com/openfoodfacts/smooth-app/commit/d066c22eda5922219b90da70291f87e53d6bd6f6)) -* now computing device id, used as app uuid in API queries ([#1064](https://github.com/openfoodfacts/smooth-app/issues/1064)) ([44b09e2](https://github.com/openfoodfacts/smooth-app/commit/44b09e2746abe60792156e1d1a329d4328775c9a)) -* refactoring getting ordered nutrients ([#1010](https://github.com/openfoodfacts/smooth-app/issues/1010)) ([d391906](https://github.com/openfoodfacts/smooth-app/commit/d39190622281214eb4ab2ce291377004f65c9d17)) -* Second onboarding page + navigation capability between pages ([#772](https://github.com/openfoodfacts/smooth-app/issues/772)) ([cfdaa4c](https://github.com/openfoodfacts/smooth-app/commit/cfdaa4c635bf819a0183b53ac7d9ed1ceb77a277)) -* Show buildNumber in about this app ([#968](https://github.com/openfoodfacts/smooth-app/issues/968)) ([e4d866f](https://github.com/openfoodfacts/smooth-app/commit/e4d866f7d7a6d4ed0386962326ac36de5c7a8570)) -* sign out confirmation step. Issue: [#884](https://github.com/openfoodfacts/smooth-app/issues/884) ([#979](https://github.com/openfoodfacts/smooth-app/issues/979)) ([fe682a6](https://github.com/openfoodfacts/smooth-app/commit/fe682a614a25bacfaa3a9a09f65c3290a9775098)) -* Updated the summary page ([#581](https://github.com/openfoodfacts/smooth-app/issues/581)) ([4d0ff34](https://github.com/openfoodfacts/smooth-app/commit/4d0ff3499ae9fea9d22bb068cd2e3a0472aae44f)) -* Use visibility_detector to detect if camera is open ([#730](https://github.com/openfoodfacts/smooth-app/issues/730)) ([572b441](https://github.com/openfoodfacts/smooth-app/commit/572b44181360cb3c95c49e08215a6b3269c06923)) - - -### Bug Fixes - -* [#1003](https://github.com/openfoodfacts/smooth-app/issues/1003) - onboarding product fallback is now 093270067481501 ([#1006](https://github.com/openfoodfacts/smooth-app/issues/1006)) ([e9913b1](https://github.com/openfoodfacts/smooth-app/commit/e9913b161a03636a3205dfe7e5cadc4e01bf81a5)) -* [#1013](https://github.com/openfoodfacts/smooth-app/issues/1013) - "knowledge images" can be displayed even with `null` with and height ([#1131](https://github.com/openfoodfacts/smooth-app/issues/1131)) ([4dcb9f5](https://github.com/openfoodfacts/smooth-app/commit/4dcb9f55d6d4797725389d382c27fd95e096362f)) -* [#1044](https://github.com/openfoodfacts/smooth-app/issues/1044) - now using a unique compatibility algorithm ([#1046](https://github.com/openfoodfacts/smooth-app/issues/1046)) ([9b9f655](https://github.com/openfoodfacts/smooth-app/commit/9b9f655755e0f6ca5da11c542b6dc1fa348aef79)) -* [#1048](https://github.com/openfoodfacts/smooth-app/issues/1048) - added the scanned product to history ([#1049](https://github.com/openfoodfacts/smooth-app/issues/1049)) ([a4f623a](https://github.com/openfoodfacts/smooth-app/commit/a4f623aeb92cd3fba4a19d87952d4376489b13d0)) -* [#1055](https://github.com/openfoodfacts/smooth-app/issues/1055) - shorter "history" title ([#1056](https://github.com/openfoodfacts/smooth-app/issues/1056)) ([554eb4d](https://github.com/openfoodfacts/smooth-app/commit/554eb4dc614011b43e328b6eda5ae58ba43fbdcb)) -* [#1094](https://github.com/openfoodfacts/smooth-app/issues/1094) - icons instead of unicode for score items ([#1104](https://github.com/openfoodfacts/smooth-app/issues/1104)) ([4198d41](https://github.com/openfoodfacts/smooth-app/commit/4198d41985abf23548208847bf1f28ffd22fa021)) -* [#1126](https://github.com/openfoodfacts/smooth-app/issues/1126) More appealing empty history screen ([#1212](https://github.com/openfoodfacts/smooth-app/issues/1212)) ([91978c1](https://github.com/openfoodfacts/smooth-app/commit/91978c13016ea1d387f2ce1959ba5ebee6c7e46b)) -* [#1155](https://github.com/openfoodfacts/smooth-app/issues/1155) - MissingPluginException (iOS scanner issue) ([#1210](https://github.com/openfoodfacts/smooth-app/issues/1210)) ([44e9096](https://github.com/openfoodfacts/smooth-app/commit/44e90969474a5f25d34554e889213da54b1c3698)) -* [#684](https://github.com/openfoodfacts/smooth-app/issues/684) - writing in white when in dark mode for score card ([#688](https://github.com/openfoodfacts/smooth-app/issues/688)) ([aec0df6](https://github.com/openfoodfacts/smooth-app/commit/aec0df6ba979b2b81f3ae697d91b3a690a7bd6ad)) -* [#687](https://github.com/openfoodfacts/smooth-app/issues/687) - safer product list load ([#689](https://github.com/openfoodfacts/smooth-app/issues/689)) ([3ebed5c](https://github.com/openfoodfacts/smooth-app/commit/3ebed5c49c4d2638bd94b680713490c07646454b)) -* [#687](https://github.com/openfoodfacts/smooth-app/issues/687) (2) - product lists loaded from db now only display actual products ([#696](https://github.com/openfoodfacts/smooth-app/issues/696)) ([a1012c1](https://github.com/openfoodfacts/smooth-app/commit/a1012c190b705f31a00bf69d3fc9a03e02a2b690)) -* [#691](https://github.com/openfoodfacts/smooth-app/issues/691) - regenerated golden screenshots for profile with bottom bar ([#692](https://github.com/openfoodfacts/smooth-app/issues/692)) ([85970d9](https://github.com/openfoodfacts/smooth-app/commit/85970d92ae8b4c7d2d457c2566eec97996d4a90c)) -* [#739](https://github.com/openfoodfacts/smooth-app/issues/739) vulnerable actions/checkout version ([#740](https://github.com/openfoodfacts/smooth-app/issues/740)) ([fe60bdd](https://github.com/openfoodfacts/smooth-app/commit/fe60bdd2b299e07699cf4ff451a700a255fc06df)) -* [#753](https://github.com/openfoodfacts/smooth-app/issues/753) - keyword search OK with non-ASCII characters ([#759](https://github.com/openfoodfacts/smooth-app/issues/759)) ([9c950b2](https://github.com/openfoodfacts/smooth-app/commit/9c950b21322ffca63be01005feb2a1c82ec54e0c)) -* [#754](https://github.com/openfoodfacts/smooth-app/issues/754) - display localized description for nova score ([#755](https://github.com/openfoodfacts/smooth-app/issues/755)) ([7ab5b83](https://github.com/openfoodfacts/smooth-app/commit/7ab5b83ee219db6a9b9e67411c9bc090bfc94c7b)) -* [#763](https://github.com/openfoodfacts/smooth-app/issues/763) - safer use of a distinct widget for attribute importance dialog ([#778](https://github.com/openfoodfacts/smooth-app/issues/778)) ([0ee7fb9](https://github.com/openfoodfacts/smooth-app/commit/0ee7fb970a74d641cd53bdda9153fda3a8827091)) -* [#767](https://github.com/openfoodfacts/smooth-app/issues/767) - display a progress gauge when downloading full pictures ([#803](https://github.com/openfoodfacts/smooth-app/issues/803)) ([b282511](https://github.com/openfoodfacts/smooth-app/commit/b282511219ef27a225c8165eb49b7662c2e7e1a4)) -* [#769](https://github.com/openfoodfacts/smooth-app/issues/769) - additional padding ([#822](https://github.com/openfoodfacts/smooth-app/issues/822)) ([0a95d6a](https://github.com/openfoodfacts/smooth-app/commit/0a95d6ace841e76f7ff1d834714ab2e01d02ab75)) -* [#771](https://github.com/openfoodfacts/smooth-app/issues/771) - now using translated categories; fixed "category filter" label ([#786](https://github.com/openfoodfacts/smooth-app/issues/786)) ([d33c806](https://github.com/openfoodfacts/smooth-app/commit/d33c8062a24f1a2f526dde94ca289ee9b098e623)) -* [#773](https://github.com/openfoodfacts/smooth-app/issues/773) - fixed width for title; default white color for svg in dark mode ([#785](https://github.com/openfoodfacts/smooth-app/issues/785)) ([6aa1b4e](https://github.com/openfoodfacts/smooth-app/commit/6aa1b4ed7c8c77dd6b308bf884113f9c6224fa54)) -* [#775](https://github.com/openfoodfacts/smooth-app/issues/775) - country code is lowercased for OpenFoodFactsCountry match ([#781](https://github.com/openfoodfacts/smooth-app/issues/781)) ([ba1e864](https://github.com/openfoodfacts/smooth-app/commit/ba1e86413558a5d4f7ee36e323cadd58b38bfb33)) -* [#788](https://github.com/openfoodfacts/smooth-app/issues/788) - same ranking FAB for history and search ([#793](https://github.com/openfoodfacts/smooth-app/issues/793)) ([f52d58d](https://github.com/openfoodfacts/smooth-app/commit/f52d58df5d88774c03281a2055bab2c375fc5d31)) -* [#790](https://github.com/openfoodfacts/smooth-app/issues/790) - "unknown product" and "unknown brand" instead of "???" ([#791](https://github.com/openfoodfacts/smooth-app/issues/791)) ([441df5e](https://github.com/openfoodfacts/smooth-app/commit/441df5e6e1ac385003b7b572f1ba1262991d5014)) -* [#794](https://github.com/openfoodfacts/smooth-app/issues/794) - localized compatibility labels ([#797](https://github.com/openfoodfacts/smooth-app/issues/797)) ([9c38f97](https://github.com/openfoodfacts/smooth-app/commit/9c38f976c2aeaa7ab7aee4417f9bed79a8026082)) -* [#799](https://github.com/openfoodfacts/smooth-app/issues/799) - now handling both svg and png files (for "Label" icons) ([#806](https://github.com/openfoodfacts/smooth-app/issues/806)) ([4e1cab5](https://github.com/openfoodfacts/smooth-app/commit/4e1cab5e40bf46342893514795a996f14851c5a2)) -* [#804](https://github.com/openfoodfacts/smooth-app/issues/804) - faster init using hive "lazy" box for products ([#809](https://github.com/openfoodfacts/smooth-app/issues/809)) ([636547f](https://github.com/openfoodfacts/smooth-app/commit/636547f61e7517181bd5f79754595f3ffb0466ad)) -* [#814](https://github.com/openfoodfacts/smooth-app/issues/814) - no more constraints for the welcome title ([#818](https://github.com/openfoodfacts/smooth-app/issues/818)) ([33903ad](https://github.com/openfoodfacts/smooth-app/commit/33903ad5f062e9786cc387ed7e7df6e686c412d4)) -* [#825](https://github.com/openfoodfacts/smooth-app/issues/825) - no more constraints on number of lines ([#829](https://github.com/openfoodfacts/smooth-app/issues/829)) ([dd523e9](https://github.com/openfoodfacts/smooth-app/commit/dd523e982b2b8d2589f7db898b1751156d637467)) -* [#828](https://github.com/openfoodfacts/smooth-app/issues/828) - no more duplicates of attribute groups ([#830](https://github.com/openfoodfacts/smooth-app/issues/830)) ([92961be](https://github.com/openfoodfacts/smooth-app/commit/92961bef8e3e98284e98a5e5de91d005513ce466)) -* [#835](https://github.com/openfoodfacts/smooth-app/issues/835) - null check before null check operator ([#852](https://github.com/openfoodfacts/smooth-app/issues/852)) ([2e3c972](https://github.com/openfoodfacts/smooth-app/commit/2e3c97222e84e5b010319c5767976bfb957f867c)) -* [#899](https://github.com/openfoodfacts/smooth-app/issues/899) - avoid to reload the product in onboarding ([#902](https://github.com/openfoodfacts/smooth-app/issues/902)) ([cb320e6](https://github.com/openfoodfacts/smooth-app/commit/cb320e600f327d21189ca804f36914ed4d594772)) -* added recent svg files to cache, with color ([#787](https://github.com/openfoodfacts/smooth-app/issues/787)) ([1384176](https://github.com/openfoodfacts/smooth-app/commit/138417614cb62f2ca95f2ab738f973763fc7b171)) -* Android embedding v2 fix ([d2c6217](https://github.com/openfoodfacts/smooth-app/commit/d2c6217077109fa5c4cbc16ff2a678f02f9bd037)) -* AppBar does not fit theme ([#1198](https://github.com/openfoodfacts/smooth-app/issues/1198)) ([622612b](https://github.com/openfoodfacts/smooth-app/commit/622612b9adf9db1516b355d5761a320635706cc5)) -* bug "Smooth Simple Button" in "SmoothAlertDialogue". issue [#993](https://github.com/openfoodfacts/smooth-app/issues/993) ([#994](https://github.com/openfoodfacts/smooth-app/issues/994)) ([8cbca14](https://github.com/openfoodfacts/smooth-app/commit/8cbca14a6d7b98a0205da9bbe17274cd7eae22cf)) -* Camera activation after native view + double camera init on first start ([#1027](https://github.com/openfoodfacts/smooth-app/issues/1027)) ([95b3275](https://github.com/openfoodfacts/smooth-app/commit/95b32753016f3516620c42f229cfa10bbf8865d1)) -* Camera fix ([#946](https://github.com/openfoodfacts/smooth-app/issues/946)) ([120bc18](https://github.com/openfoodfacts/smooth-app/commit/120bc180c60fca0e3cf8f6c06a155a6b24c34f4c)) -* Camera lockCaptureOrientation fix ([#1151](https://github.com/openfoodfacts/smooth-app/issues/1151)) ([4cdc437](https://github.com/openfoodfacts/smooth-app/commit/4cdc437a41985af31d95569142968fb396d7e89d)) -* Camera not activating directly ([#1125](https://github.com/openfoodfacts/smooth-app/issues/1125)) ([4ef945a](https://github.com/openfoodfacts/smooth-app/commit/4ef945a8c16742742a4d315d28bb1ea9a48065c3)) -* Camera performance ([#1028](https://github.com/openfoodfacts/smooth-app/issues/1028)) ([ab0a487](https://github.com/openfoodfacts/smooth-app/commit/ab0a487262e23d489243c9ed6964566bc73a47e6)) -* Camera state management ([#990](https://github.com/openfoodfacts/smooth-app/issues/990)) ([72a2f27](https://github.com/openfoodfacts/smooth-app/commit/72a2f276a4fb09024ee2296a5120bf5371fe90b5)) -* Carousel _CastError: Null check operator used on a null value ([#967](https://github.com/openfoodfacts/smooth-app/issues/967)) ([d1c2488](https://github.com/openfoodfacts/smooth-app/commit/d1c2488ec08d061dc145d5d85e1f87926abd4a96)) -* Close barcode scanner and free it's resources ([#1181](https://github.com/openfoodfacts/smooth-app/issues/1181)) ([d490682](https://github.com/openfoodfacts/smooth-app/commit/d490682a1d6fe253e5791c80052d397fd8316658)) -* contributors dialog ([#641](https://github.com/openfoodfacts/smooth-app/issues/641)) ([b7b7983](https://github.com/openfoodfacts/smooth-app/commit/b7b798342559abfaab6824227fd1aea586023b9c)) -* **country selector:** preselect the most likely country ([#934](https://github.com/openfoodfacts/smooth-app/issues/934)) ([d403138](https://github.com/openfoodfacts/smooth-app/commit/d4031382f9d609ef1ea38c43202cfe5a419f2e80)) -* Dart uuid generation ([#1071](https://github.com/openfoodfacts/smooth-app/issues/1071)) ([5c68cfc](https://github.com/openfoodfacts/smooth-app/commit/5c68cfc63a7304399537bc5ae428877afdfd50c6)) -* deprecated share package + analyzer warnings ([#656](https://github.com/openfoodfacts/smooth-app/issues/656)) ([61576de](https://github.com/openfoodfacts/smooth-app/commit/61576ded7128aa34b8ac5283532cced4872c8226)) -* Fastlane play store key overwrite fix ([#1086](https://github.com/openfoodfacts/smooth-app/issues/1086)) ([8c57968](https://github.com/openfoodfacts/smooth-app/commit/8c579681bca5c791462c81bffcaa62b19f36b8d3)) -* Fix iOS build ([#996](https://github.com/openfoodfacts/smooth-app/issues/996)) ([919f0a0](https://github.com/openfoodfacts/smooth-app/commit/919f0a0861f30e7247fb4e8d6bcf8efaa5caa19b)) -* Fix old flutter version for CI/CD ([#1017](https://github.com/openfoodfacts/smooth-app/issues/1017)) ([d620f09](https://github.com/openfoodfacts/smooth-app/commit/d620f090cf225db82c8523b6f90b87cc1969e1f1)) -* Flattened the color/dark mode settings ([#1195](https://github.com/openfoodfacts/smooth-app/issues/1195)) ([6c0cbb0](https://github.com/openfoodfacts/smooth-app/commit/6c0cbb003e0223e64cba8006e2201623abae0cf6)) -* Github actions cache name for forcing new version ([#1083](https://github.com/openfoodfacts/smooth-app/issues/1083)) ([345a7a8](https://github.com/openfoodfacts/smooth-app/commit/345a7a83cad87a69fc6bf0c425a88d5485dcdc9d)) -* golden screenshots and local database ([#951](https://github.com/openfoodfacts/smooth-app/issues/951)) ([4eccfbe](https://github.com/openfoodfacts/smooth-app/commit/4eccfbe3820041dea5e2c4f1cacd3d45b454dce7)) -* lifecycle refactoring ([#995](https://github.com/openfoodfacts/smooth-app/issues/995)) ([3d4bc59](https://github.com/openfoodfacts/smooth-app/commit/3d4bc59d2909bdbfb2b7a9543e3930b7d0dcd66b)) -* no longer using deprecated API method getKnowledgePanels ([#1066](https://github.com/openfoodfacts/smooth-app/issues/1066)) ([4dd0ab1](https://github.com/openfoodfacts/smooth-app/commit/4dd0ab1360557c611fa80901c9843e49791659a9)) -* not running Sentry in when in debug mode ([#708](https://github.com/openfoodfacts/smooth-app/issues/708)) ([173675a](https://github.com/openfoodfacts/smooth-app/commit/173675a5a02691899ee50d5462012ca838fcfd36)) -* Not starting fix ([#1153](https://github.com/openfoodfacts/smooth-app/issues/1153)) ([23e09bc](https://github.com/openfoodfacts/smooth-app/commit/23e09bca421dd210c47c00b2f726a56d15d9d62e)) -* Not starting sentry fix ([#1154](https://github.com/openfoodfacts/smooth-app/issues/1154)) ([17229d0](https://github.com/openfoodfacts/smooth-app/commit/17229d0bd3c68f9726e1e217dc5b2db899bd9187)) -* null crash in new product page with knowledge panels builder ([#675](https://github.com/openfoodfacts/smooth-app/issues/675)) ([76222ac](https://github.com/openfoodfacts/smooth-app/commit/76222ac7c106873ef233b42c82b823172305837a)) -* Null error when picking no picture ([#1124](https://github.com/openfoodfacts/smooth-app/issues/1124)) ([5d4a883](https://github.com/openfoodfacts/smooth-app/commit/5d4a883da50796ac54b9a9c304b9830693e66cec)) -* përkthimet e këqija shqip thyen "develop" ([#1224](https://github.com/openfoodfacts/smooth-app/issues/1224)) ([ca7be80](https://github.com/openfoodfacts/smooth-app/commit/ca7be80e37551068a13c7a1acf58766760da6826)) -* Plural translation ([#896](https://github.com/openfoodfacts/smooth-app/issues/896)) ([810ac43](https://github.com/openfoodfacts/smooth-app/commit/810ac43d6088881b14ff40e090555f3adab01745)) -* Pop loading dialog before build is finished ([#1182](https://github.com/openfoodfacts/smooth-app/issues/1182)) ([d7b36bd](https://github.com/openfoodfacts/smooth-app/commit/d7b36bd7ea899cabbe87c0f3f1da7f96f2e93fec)) -* product compatibility score ([#858](https://github.com/openfoodfacts/smooth-app/issues/858)) ([41d45d1](https://github.com/openfoodfacts/smooth-app/commit/41d45d1c4f4a818a912d44fb38c1d90735ffe823)) -* Refresh product on image upload from new product page ([#1039](https://github.com/openfoodfacts/smooth-app/issues/1039)) ([173b7fc](https://github.com/openfoodfacts/smooth-app/commit/173b7fcccb172785df7ae9bbf531aeb5db0fc41f)) -* Remove camera controller listener ([278e9e8](https://github.com/openfoodfacts/smooth-app/commit/278e9e8640aca05a372b4498472448bbb9b1a66d)) -* Removed deprecated SplashScreenDrawable api ([#710](https://github.com/openfoodfacts/smooth-app/issues/710)) ([692c817](https://github.com/openfoodfacts/smooth-app/commit/692c81776745167bb6254e7561c9e8ad43217e95)) -* required visibility configuration for opening links ([#695](https://github.com/openfoodfacts/smooth-app/issues/695)) ([94b6c30](https://github.com/openfoodfacts/smooth-app/commit/94b6c3010a60c7333626e8c652564a844068a91c)) -* Reset password not initialized fix ([#758](https://github.com/openfoodfacts/smooth-app/issues/758)) ([1454fbc](https://github.com/openfoodfacts/smooth-app/commit/1454fbc6eea77f4bfa36a319da05e7af67b9caac)) -* Return Unknown compatibility when needed ([#718](https://github.com/openfoodfacts/smooth-app/issues/718)) ([c60fb7f](https://github.com/openfoodfacts/smooth-app/commit/c60fb7fa8888dff276a0ed312d5a56e922b9dd96)) -* Scanner buttons not updated ([#1140](https://github.com/openfoodfacts/smooth-app/issues/1140)) ([000c2be](https://github.com/openfoodfacts/smooth-app/commit/000c2bed99a5736a172dd772e58797cdafb17963)) -* Scanner preview over other widgets fix ([#939](https://github.com/openfoodfacts/smooth-app/issues/939)) ([c5ea875](https://github.com/openfoodfacts/smooth-app/commit/c5ea875588106642bf8934a34029de22e86b5930)) -* semantic pr for translations ([#779](https://github.com/openfoodfacts/smooth-app/issues/779)) ([5692565](https://github.com/openfoodfacts/smooth-app/commit/569256573485024a5d544f2f6ca60673bbf6ee92)) -* sign up colors were ko for title and terms (day mode) ([#810](https://github.com/openfoodfacts/smooth-app/issues/810)) ([468875b](https://github.com/openfoodfacts/smooth-app/commit/468875bdbfacf81f2a4c475dd3a7095f2128e25a)) -* SmoothSimpleButton reactive to schema [#591](https://github.com/openfoodfacts/smooth-app/issues/591) ([#624](https://github.com/openfoodfacts/smooth-app/issues/624)) ([ff8858e](https://github.com/openfoodfacts/smooth-app/commit/ff8858e27d561b368a31a94d194c998d82049629)) -* summary card with no category ([#1107](https://github.com/openfoodfacts/smooth-app/issues/1107)) ([f1777e8](https://github.com/openfoodfacts/smooth-app/commit/f1777e807b8e081a4c608e543ff820f31bdf4382)) -* Switch dark mode color ([#1213](https://github.com/openfoodfacts/smooth-app/issues/1213)) ([7a7b28b](https://github.com/openfoodfacts/smooth-app/commit/7a7b28bbd03135c6d1c7516000a8222f0c555926)) -* translated preferences from init ([#789](https://github.com/openfoodfacts/smooth-app/issues/789)) ([c719e9a](https://github.com/openfoodfacts/smooth-app/commit/c719e9a8c43f8e886a36969c3392a1d52f91f1d4)) -* Unnecessary keyboard openings when not on the page anymore ([#845](https://github.com/openfoodfacts/smooth-app/issues/845)) ([c24a4b7](https://github.com/openfoodfacts/smooth-app/commit/c24a4b704d941dd84ed4e8e5ed84099ebe6b22e1)) -* unnecessary SmoothAppGetLanguage rebuilds ([#1219](https://github.com/openfoodfacts/smooth-app/issues/1219)) ([3215676](https://github.com/openfoodfacts/smooth-app/commit/3215676ddeb171ce1958743da5a683caec75a981)) -* Update golden tests ([#940](https://github.com/openfoodfacts/smooth-app/issues/940)) ([f55054c](https://github.com/openfoodfacts/smooth-app/commit/f55054c79a4036a617cc6b1d4fbcf33d62bba96c)) -* Weird box artefact on pressing table ([#1203](https://github.com/openfoodfacts/smooth-app/issues/1203)) ([69294b7](https://github.com/openfoodfacts/smooth-app/commit/69294b7f2d3faf098a9eb9192aea32b07c4781ab)) -* Wrong colored create account button ([#1191](https://github.com/openfoodfacts/smooth-app/issues/1191)) ([4ad8232](https://github.com/openfoodfacts/smooth-app/commit/4ad823267253a9b2e9fc2cc89af46eb5ebf870d4)) -* Wrong item in settings subtitle String ([781a676](https://github.com/openfoodfacts/smooth-app/commit/781a6761dda40b67b7f0599566363d7a45bea3a6)) -* Wrong null check in scanner ([#724](https://github.com/openfoodfacts/smooth-app/issues/724)) ([c2d3b85](https://github.com/openfoodfacts/smooth-app/commit/c2d3b85a3b44e8e3cda182c87ff81129993c0b75)) - ## [0.1.0](https://www.github.com/openfoodfacts/smooth-app/compare/v0.0.2...v0.1.0) (2021-11-27) From c6643c8f69d607440afab14375783db08ff499c3 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Fri, 18 Mar 2022 17:50:33 +0545 Subject: [PATCH 05/15] wrapped the circular progress indicator with center widget --- .../lib/pages/onboarding/knowledge_panel_page_template.dart | 2 +- packages/smooth_app/lib/pages/onboarding/preferences_page.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart b/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart index 222cd648daa..5fbc85504ec 100644 --- a/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart +++ b/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart @@ -59,7 +59,7 @@ class _KnowledgePanelPageTemplateState return Text('Fatal Error: ${snapshot.error}'); } if (snapshot.connectionState != ConnectionState.done) { - return const CircularProgressIndicator(); + return const Center(child: CircularProgressIndicator()); } final Widget knowledgePanelWidget = const KnowledgePanelsBuilder().buildSingle( diff --git a/packages/smooth_app/lib/pages/onboarding/preferences_page.dart b/packages/smooth_app/lib/pages/onboarding/preferences_page.dart index a7e44e68bbc..062c97c0130 100644 --- a/packages/smooth_app/lib/pages/onboarding/preferences_page.dart +++ b/packages/smooth_app/lib/pages/onboarding/preferences_page.dart @@ -44,7 +44,7 @@ class _PreferencesPageState extends State { return Text('Fatal Error: ${snapshot.error}'); } if (snapshot.connectionState != ConnectionState.done) { - return const CircularProgressIndicator(); + return const Center(child: CircularProgressIndicator()); } return _Helper(_product); }, From c4b4d4e6a5ee58075002e71981a67d714d595faf Mon Sep 17 00:00:00 2001 From: Prabesh Date: Fri, 18 Mar 2022 17:58:10 +0545 Subject: [PATCH 06/15] wrapped CircularProgressIndicator with Center Widget --- .../lib/pages/onboarding/knowledge_panel_page_template.dart | 2 +- packages/smooth_app/lib/pages/onboarding/preferences_page.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart b/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart index 5fbc85504ec..c6721412047 100644 --- a/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart +++ b/packages/smooth_app/lib/pages/onboarding/knowledge_panel_page_template.dart @@ -59,7 +59,7 @@ class _KnowledgePanelPageTemplateState return Text('Fatal Error: ${snapshot.error}'); } if (snapshot.connectionState != ConnectionState.done) { - return const Center(child: CircularProgressIndicator()); + return const Center(child: CircularProgressIndicator()); } final Widget knowledgePanelWidget = const KnowledgePanelsBuilder().buildSingle( diff --git a/packages/smooth_app/lib/pages/onboarding/preferences_page.dart b/packages/smooth_app/lib/pages/onboarding/preferences_page.dart index 062c97c0130..8b64c31a479 100644 --- a/packages/smooth_app/lib/pages/onboarding/preferences_page.dart +++ b/packages/smooth_app/lib/pages/onboarding/preferences_page.dart @@ -44,7 +44,7 @@ class _PreferencesPageState extends State { return Text('Fatal Error: ${snapshot.error}'); } if (snapshot.connectionState != ConnectionState.done) { - return const Center(child: CircularProgressIndicator()); + return const Center(child: CircularProgressIndicator()); } return _Helper(_product); }, From faf28956c5def3b753bb0cc7e1316251880ec5f1 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 18:20:40 +0545 Subject: [PATCH 07/15] Added Floating ActionButton --- .../lib/pages/product/new_product_page.dart | 61 ++++++++++--------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index 0572763b8fe..b3b2079c92c 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:openfoodfacts/model/KnowledgePanels.dart'; import 'package:openfoodfacts/openfoodfacts.dart'; @@ -42,6 +43,7 @@ enum ProductPageMenuItem { WEB, REFRESH } class _ProductPageState extends State { late Product _product; late ProductPreferences _productPreferences; + bool isVisible = true; @override void initState() { @@ -63,43 +65,44 @@ class _ProductPageState extends State { final ColorScheme colorScheme = themeData.colorScheme; final MaterialColor materialColor = SmoothTheme.getMaterialColor(themeProvider); + return Scaffold( backgroundColor: SmoothTheme.getColor( colorScheme, materialColor, ColorDestination.SURFACE_BACKGROUND, ), - appBar: AppBar( - title: Text(getProductName(_product, appLocalizations)), - actions: [ - PopupMenuButton( - itemBuilder: (BuildContext context) => - >[ - PopupMenuItem( - value: ProductPageMenuItem.WEB, - child: Text(appLocalizations.label_web), - ), - PopupMenuItem( - value: ProductPageMenuItem.REFRESH, - child: Text(appLocalizations.label_refresh), + floatingActionButton: isVisible + ? FloatingActionButton( + backgroundColor: colorScheme.primary, + onPressed: () { + Navigator.pop(context); + }, + child: const Icon( + Icons.arrow_back, + color: Colors.white, ), - ], - onSelected: (final ProductPageMenuItem value) async { - switch (value) { - case ProductPageMenuItem.WEB: - LaunchUrlHelper.launchURL( - 'https://openfoodfacts.org/product/${_product.barcode}/', - false); - break; - case ProductPageMenuItem.REFRESH: - _refreshProduct(context); - break; + ) + : null, + floatingActionButtonLocation: FloatingActionButtonLocation.startTop, + body: NotificationListener( + onNotification: (UserScrollNotification notification) { + if (notification.direction == ScrollDirection.forward) { + if (!isVisible) { + setState(() { + isVisible = true; + }); } - }, - ), - ], - ), - body: _buildProductBody(context), + } else if (notification.direction == ScrollDirection.reverse) { + if (isVisible) { + setState(() { + isVisible = false; + }); + } + } + return true; + }, + child: _buildProductBody(context)), ); } From 831a4e5d1fccf39ea07cfe00f2fa0b8565d74f39 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 21:47:05 +0545 Subject: [PATCH 08/15] Added PopUp Menu Action --- .../lib/pages/product/new_product_page.dart | 83 +++++++++++++++---- 1 file changed, 65 insertions(+), 18 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index b3b2079c92c..22054a4b39f 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -66,6 +66,8 @@ class _ProductPageState extends State { final MaterialColor materialColor = SmoothTheme.getMaterialColor(themeProvider); + final size = MediaQuery.of(context).size; + return Scaffold( backgroundColor: SmoothTheme.getColor( colorScheme, @@ -85,24 +87,69 @@ class _ProductPageState extends State { ) : null, floatingActionButtonLocation: FloatingActionButtonLocation.startTop, - body: NotificationListener( - onNotification: (UserScrollNotification notification) { - if (notification.direction == ScrollDirection.forward) { - if (!isVisible) { - setState(() { - isVisible = true; - }); - } - } else if (notification.direction == ScrollDirection.reverse) { - if (isVisible) { - setState(() { - isVisible = false; - }); - } - } - return true; - }, - child: _buildProductBody(context)), + body: Stack( + children: [ + NotificationListener( + onNotification: (UserScrollNotification notification) { + if (notification.direction == ScrollDirection.forward) { + if (!isVisible) { + setState(() { + isVisible = true; + }); + } + } else if (notification.direction == ScrollDirection.reverse) { + if (isVisible) { + setState(() { + isVisible = false; + }); + } + } + return true; + }, + child: _buildProductBody(context)), + if(isVisible) ...[ + Positioned( + bottom: size.height*0.03, + right: size.width*0.06, + child: Container( + height: size.height * 0.06, + width: size.width * 0.1, + decoration: const BoxDecoration( + color: Colors.pink, + shape: BoxShape.circle + ), + child: PopupMenuButton( + itemBuilder: (BuildContext context) => + >[ + PopupMenuItem( + value: ProductPageMenuItem.WEB, + child: Text(appLocalizations.label_web), + ), + PopupMenuItem( + value: ProductPageMenuItem.REFRESH, + child: Text(appLocalizations.label_refresh), + ), + ], + onSelected: (final ProductPageMenuItem value) async { + switch (value) { + case ProductPageMenuItem.WEB: + LaunchUrlHelper.launchURL( + 'https://openfoodfacts.org/product/${_product.barcode}/', + false); + break; + case ProductPageMenuItem.REFRESH: + _refreshProduct(context); + break; + } + }, + ), + )) + + ] + + + ], + ), ); } From cf90d5a6620d22e91647a38be8b65502a6a787b6 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 21:48:48 +0545 Subject: [PATCH 09/15] Added Pop UP Action Button --- packages/smooth_app/lib/pages/product/new_product_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index 22054a4b39f..79c2fbd631b 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -66,7 +66,7 @@ class _ProductPageState extends State { final MaterialColor materialColor = SmoothTheme.getMaterialColor(themeProvider); - final size = MediaQuery.of(context).size; + final Size size = MediaQuery.of(context).size; return Scaffold( backgroundColor: SmoothTheme.getColor( From dd880a24552f234da4bdd171c4836791f242d348 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 21:58:11 +0545 Subject: [PATCH 10/15] Added Pop-Up Action Button --- .../lib/pages/product/new_product_page.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index 79c2fbd631b..104730e78bd 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -107,15 +107,17 @@ class _ProductPageState extends State { return true; }, child: _buildProductBody(context)), + + //! It is a temporary button for Pop-Up action menu if(isVisible) ...[ Positioned( - bottom: size.height*0.03, - right: size.width*0.06, + bottom: size.height*0.01, + right: size.width*0.01, child: Container( - height: size.height * 0.06, - width: size.width * 0.1, - decoration: const BoxDecoration( - color: Colors.pink, + height: size.height * 0.05, + width: size.width * 0.2, + decoration: BoxDecoration( + color: colorScheme.primary, shape: BoxShape.circle ), child: PopupMenuButton( From 1859c5a8f32b7ebb2750717a2bf0266979798802 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 21:59:28 +0545 Subject: [PATCH 11/15] Added PopUp action menu --- packages/smooth_app/lib/pages/product/new_product_page.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index 104730e78bd..86cc23837e5 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -18,7 +18,6 @@ import 'package:smooth_app/generic_lib/buttons/smooth_action_button.dart'; import 'package:smooth_app/generic_lib/design_constants.dart'; import 'package:smooth_app/helpers/analytics_helper.dart'; import 'package:smooth_app/helpers/launch_url_helper.dart'; -import 'package:smooth_app/helpers/product_cards_helper.dart'; import 'package:smooth_app/pages/product/category_cache.dart'; import 'package:smooth_app/pages/product/category_picker_page.dart'; import 'package:smooth_app/pages/product/common/product_dialog_helper.dart'; From b6430192e5ac56c647124a22d1c89fbccfa20ef0 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 22:01:31 +0545 Subject: [PATCH 12/15] Added PopUp action Menu --- .../lib/pages/product/new_product_page.dart | 73 +++++++++---------- 1 file changed, 34 insertions(+), 39 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index 86cc23837e5..f87d518c1f6 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -108,47 +108,42 @@ class _ProductPageState extends State { child: _buildProductBody(context)), //! It is a temporary button for Pop-Up action menu - if(isVisible) ...[ + if (isVisible) ...[ Positioned( - bottom: size.height*0.01, - right: size.width*0.01, - child: Container( - height: size.height * 0.05, - width: size.width * 0.2, - decoration: BoxDecoration( - color: colorScheme.primary, - shape: BoxShape.circle - ), - child: PopupMenuButton( - itemBuilder: (BuildContext context) => - >[ - PopupMenuItem( - value: ProductPageMenuItem.WEB, - child: Text(appLocalizations.label_web), - ), - PopupMenuItem( - value: ProductPageMenuItem.REFRESH, - child: Text(appLocalizations.label_refresh), - ), - ], - onSelected: (final ProductPageMenuItem value) async { - switch (value) { - case ProductPageMenuItem.WEB: - LaunchUrlHelper.launchURL( - 'https://openfoodfacts.org/product/${_product.barcode}/', - false); - break; - case ProductPageMenuItem.REFRESH: - _refreshProduct(context); - break; - } - }, - ), - )) - + bottom: size.height * 0.01, + right: size.width * 0.01, + child: Container( + height: size.height * 0.05, + width: size.width * 0.2, + decoration: BoxDecoration( + color: colorScheme.primary, shape: BoxShape.circle), + child: PopupMenuButton( + itemBuilder: (BuildContext context) => + >[ + PopupMenuItem( + value: ProductPageMenuItem.WEB, + child: Text(appLocalizations.label_web), + ), + PopupMenuItem( + value: ProductPageMenuItem.REFRESH, + child: Text(appLocalizations.label_refresh), + ), + ], + onSelected: (final ProductPageMenuItem value) async { + switch (value) { + case ProductPageMenuItem.WEB: + LaunchUrlHelper.launchURL( + 'https://openfoodfacts.org/product/${_product.barcode}/', + false); + break; + case ProductPageMenuItem.REFRESH: + _refreshProduct(context); + break; + } + }, + ), + )) ] - - ], ), ); From a1860ba79358825dc5e08cdfe03e4683273e7b25 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 22:04:19 +0545 Subject: [PATCH 13/15] Added Types --- packages/smooth_app/lib/pages/product/new_product_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index f87d518c1f6..7aec93ef7af 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -87,7 +87,7 @@ class _ProductPageState extends State { : null, floatingActionButtonLocation: FloatingActionButtonLocation.startTop, body: Stack( - children: [ + children: [ NotificationListener( onNotification: (UserScrollNotification notification) { if (notification.direction == ScrollDirection.forward) { From 98b7e466f271794539e38d56844b438bcc2cbe07 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 22:04:53 +0545 Subject: [PATCH 14/15] Certain Changes --- packages/smooth_app/lib/pages/product/new_product_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index 7aec93ef7af..234c492d329 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -87,7 +87,7 @@ class _ProductPageState extends State { : null, floatingActionButtonLocation: FloatingActionButtonLocation.startTop, body: Stack( - children: [ + children: [ NotificationListener( onNotification: (UserScrollNotification notification) { if (notification.direction == ScrollDirection.forward) { From c265afce2e7754d0ab2205a10fe139f18f78d6f3 Mon Sep 17 00:00:00 2001 From: Prabesh Date: Sun, 20 Mar 2022 22:08:41 +0545 Subject: [PATCH 15/15] Certain Changes --- packages/smooth_app/lib/pages/product/new_product_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index 234c492d329..b652f0d06dd 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -108,7 +108,7 @@ class _ProductPageState extends State { child: _buildProductBody(context)), //! It is a temporary button for Pop-Up action menu - if (isVisible) ...[ + if (isVisible) ...[ Positioned( bottom: size.height * 0.01, right: size.width * 0.01,