Skip to content

Instantly share code, notes, and snippets.

@nerder
Created March 11, 2020 00:12
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 nerder/3aa71dc1f6f26595d5032703871be94f to your computer and use it in GitHub Desktop.
Save nerder/3aa71dc1f6f26595d5032703871be94f to your computer and use it in GitHub Desktop.
[Flutter Workshop] Helpers: Stateless & Stateful Widgets templates
/// StatelessWidget template
class MyStateless extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container();
}
}
/// StatelessWidget template
class MyStateful extends StatefulWidget {
@override
_MyStatefulState createState() => _MyStatefulState();
}
class _MyStatefulState extends State<MyStateful> {
@override
Widget build(BuildContext context) {
return Container();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment