Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehutch committed Jun 11, 2023
1 parent 4873c52 commit 42687ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ class HomeView extends StatelessWidget {
return Scaffold(
body: Center(
child: Text(
// Read value, and subscribe to changes:
'The count is: ${counter.reactiveValue(context)}',
style: const TextStyle(fontSize: 20),
),
),
floatingActionButton: FloatingActionButton(
onPressed: () {
// Update value:
counter.value++;
},
tooltip: 'Increment',
Expand Down

0 comments on commit 42687ea

Please sign in to comment.