mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
Adds a "Filter by Nutri-Score" switch and an A–E discrete slider to the ingredient search filter popover. The worst acceptable grade is sent to the backend as `nutriscore__lte=<a|b|c|d|e>`, matching the new filter exposed by wger-project/wger#2295. - Extend `IngredientFilters` with `filterNutriscore` + `nutriscoreMax` - Persist both settings through `PreferenceHelper` - Expose `toggleNutriscore` and `chooseNutriscoreMax` on the riverpod notifier - Propagate `nutriscoreMax` through `NutritionPlansProvider.searchIngredient` - Add English strings `filterNutriscore` / `filterNutriscoreMax` - Widget tests cover: slider hidden until switch flipped, query emitted with/without the filter - Update stale generated Mockito overrides across the four test files that mock `NutritionPlansProvider` so the new named arg lines up Refs wger-project/wger#2295
flutter pub run build_runner build flutter pub run build_runner watch