Skip to content

Instantly share code, notes, and snippets.

@rrousselGit
Created December 5, 2018 14:29
Show Gist options
  • Select an option

  • Save rrousselGit/bf4d9181a6d35a4db2696f91b26aa65e to your computer and use it in GitHub Desktop.

Select an option

Save rrousselGit/bf4d9181a6d35a4db2696f91b26aa65e to your computer and use it in GitHub Desktop.
Stateless widget
class StatelessExample extends StatelessWidget {
final int foo;
final int bar;
const StatelessExample({Key key, this.foo, this.bar}) : super(key: key);
@override
Widget build(BuildContext context) {
return Text('$foo $bar');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment