Created
September 9, 2019 19:04
-
-
Save isacjunior/c507e1e1ebb1e901bedc4271b5973588 to your computer and use it in GitHub Desktop.
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
class MyCount extends StatefulWidget { | |
@override | |
_MyCountState createState() => _MyCountState(); | |
} | |
class _MyCountState extends State<MyCount> { | |
int _counter = 0; | |
void _incrementCounter() { | |
setState(() { | |
_counter++; | |
}); | |
} | |
@override | |
Widget build(BuildContext context) { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment