Skip to content

Commit

Permalink
Fix ValueNotifier example in state-management.md (#11553)
Browse files Browse the repository at this point in the history
"value" and "child" were swapped in the ValueWidgetBuilder function

_Description of what this PR is changing or adding, and why:_ This is a
correction in the order of parameters passed to a function, in the
ValueNotifier usage example.

_Issues fixed by this PR (if any):_ 
![Screenshot 2024-12-27
223344](https://github.com/user-attachments/assets/b1c1603c-19f2-4be8-b8f3-cb52a3d8e380)
  • Loading branch information
GIT-chandra authored Jan 1, 2025
1 parent 3a5baf5 commit 605f81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/get-started/fundamentals/state-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Column(
children: [
ValueListenableBuilder(
valueListenable: counterNotifier,
builder: (context, child, value) {
builder: (context, value, child) {
return Text('counter: $value');
},
),
Expand Down

0 comments on commit 605f81f

Please sign in to comment.