openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
834 stars 279 forks source link

Badge for pending tasks #3565

Closed monsieurtanuki closed 1 year ago

monsieurtanuki commented 1 year ago

@alexgarel Good idea! Something like that I guess: Capture d’écran 2023-01-10 à 14 21 44

cf. https://github.com/flutter/flutter/pull/114560 cf. https://api.flutter.dev/flutter/material/Badge-class.html

Originally posted by @monsieurtanuki in https://github.com/openfoodfacts/smooth-app/issues/3533#issuecomment-1377266629

monsieurtanuki commented 1 year ago

I've started to play with it and I can tell you it's VERY addictive.

First step: I switched off the internet and went to the "power edit" page. I changed 4 values, clicked "save", and therefore went back to the previous screen. There's a "4" badge on the profile icon of the bottom bar. Capture d’écran 2023-01-10 à 17 24 14

Regardless, I went on browsing the app and saw that the badge number decreased (here, value "2"). Capture d’écran 2023-01-10 à 17 24 48

In the end, there's no more badge as all the tasks are done. Capture d’écran 2023-01-10 à 17 24 56

That removes the stress of "what's going on here?".

Additional features would be: