Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class MyWidget2 extends StatefulWidget {
const MyWidget2({Key? key}) : super(key: key);
_MyWidget2State createState() => _MyWidget2State();
class _MyWidget2State extends State<MyWidget2> {
Widget build(BuildContext context) {
print('MyWidget2 is building');
return Container(
child: Text("Stateful Widget", style: TextStyle(fontSize: 30)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment