Fix bug that left PerDate widget empty when popped to. #5

Merged
marco merged 1 commits from fix-empty-page-bug into master 2024-09-13 14:54:14 +00:00

1 Commits

Author SHA1 Message Date
109d3e23de Fix bug that left PerDate widget empty when popped to.
Previously, when you would navigate to a PerDate widget that already
exists on the Navigation stack, a food that is entered will not be
visible when popping to the PerDate widget with the same date.

This is because the state is not updated (the BLoC exists per PerDate
widget, and a change in one widget does not cause firing an event in the previous widget's BLoC).

With this fix, we call setState() and update the entries for the widget
from storage.
2024-09-13 16:52:47 +02:00