-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ComputedNotifier
streaming class
#150143
Open
HenriqueNas
wants to merge
8
commits into
flutter:master
Choose a base branch
from
HenriqueNas:feature/change_notifier
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+224
−1
Commits on Jun 12, 2024
-
feat: Introduce
ComputedNotifier
for derived state management`ComputedNotifier` is a new `ValueListenable` implementation that computes its value based on other `ValueListenable` instances. This facilitates efficient and reactive updates for derived state, eliminating the need for manual dependency tracking and update propagation. The class listens to changes from provided dependencies and recomputes its value whenever any of them change, notifying its listeners only when the computed value itself changes.
Configuration menu - View commit details
-
Copy full SHA for 0dfdd16 - Browse repository at this point
Copy the full SHA 0dfdd16View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6ce9e8 - Browse repository at this point
Copy the full SHA c6ce9e8View commit details -
Docs: Include
ComputedNotifier
in preferred listenersClarifies that `ComputedNotifier` is also a preferred alternative to `Stream` subclasses, aligning with the preference for `ValueNotifier` and `ChangeNotifier` in Flutter framework code.
Configuration menu - View commit details
-
Copy full SHA for ff30c0d - Browse repository at this point
Copy the full SHA ff30c0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e4c906 - Browse repository at this point
Copy the full SHA 1e4c906View commit details
Commits on Jun 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 23d6421 - Browse repository at this point
Copy the full SHA 23d6421View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ffc1a1 - Browse repository at this point
Copy the full SHA 8ffc1a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ce230a - Browse repository at this point
Copy the full SHA 9ce230aView commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4a6c5fd - Browse repository at this point
Copy the full SHA 4a6c5fdView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.