Change behavior of global state #11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-global-state"
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?
Until now, FoodEntryBloc (which is holding the global state for every
day) would cause a change in every widget in the tree. For example, when
an entry for one day gets added, all other entries in opened days would
also be rebuilt.
Now, the GlobalState will be emitted with an additional date, which
signals, which date caused the state change.
With this information, I selectively only build the EntryLists that
needs to be rebuilt.
Additionally, the calendar FAB will push a new route instead of
navigating to a new day by utilizing the pageController.
292d8c1b50
to983f3316e6
983f3316e6
to7728ec3b66