mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 23:42:00 +01:00
ingredient details dialog:
- give it close/continue buttons to load into selection
- always use image property from loaded ingredient
this is a bit slower, but:
* more consistent (no need to support absolute vs relative URL's
separately)
* cleaner (no need to pass it thru explicitly)
* more future proof: we will get rid of the dedicated
/ingredient/search endpoint which gives us images before we load
the full ingredient. in the future we will simply load the
ingredients, completely, all at once.
* allows for easier code reuse with barcode scan result dialog
barcode scan result dialog:
- show image and detailed nutrition table
- support a loading spinner
- simplify error handling
- deduplicate code between found & not found
- share code with ingredient details dialog