Fix bug that left PerDate widget empty when popped to. #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-empty-page-bug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.