Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Last active June 25, 2022 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiki1003/dd92692fa404428033a97c04db0d8835 to your computer and use it in GitHub Desktop.
Save daiki1003/dd92692fa404428033a97c04db0d8835 to your computer and use it in GitHub Desktop.
class SomeBuilder extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Builder(
builder: (innerContext) {
return IconButton(
onPressed: () {
final theme = Theme.of(context);
...,
}
);
},
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment