Created
March 11, 2020 00:12
-
-
Save nerder/3aa71dc1f6f26595d5032703871be94f to your computer and use it in GitHub Desktop.
[Flutter Workshop] Helpers: Stateless & Stateful Widgets templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// 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