-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Use case
Right now, there isn't enough (or probably not at all) documentation describing that a ChangeNotifier can be plugged into an AnimatedBuilder widget to listen for rebuilds. The name is misleading but it's not going to change so, at least, we should write more documentation to make the users aware of the use-case
Proposal
Enhance the documentation of both classes:
- For
ChangeNotifier, explicitly write that it can be listened in anAnimatedBuilderwidget - For
AnimatedBuilder, add a short Flutter example showing how anInheritedWidgetexposing aChangeNotifiercan listen to changes to rebuild only specific parts of the UI (rather than the entire subtree)
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team