Skip to content

Instantly share code, notes, and snippets.

@CodingWithTashi
Created March 20, 2022 10:35
Show Gist options
  • Save CodingWithTashi/24b52648e0398226287d70724b5f33a4 to your computer and use it in GitHub Desktop.
Save CodingWithTashi/24b52648e0398226287d70724b5f33a4 to your computer and use it in GitHub Desktop.
const Text(
'You have pushed the button this many times:',
),
Consumer<CounterProvider>(
builder: (_, provider, __) {
return Text(
'${provider.count}',
style: Theme.of(context).textTheme.headline4,
);
},
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment