Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Created June 25, 2022 17:23
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/b9be4670893a2b096bff78b1d4c38195 to your computer and use it in GitHub Desktop.
Save daiki1003/b9be4670893a2b096bff78b1d4c38195 to your computer and use it in GitHub Desktop.
class SomeBuilder extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Builder(
builder: (innerContext) {
return NewIconButton();
},
);
}
}
class NewIconButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
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