Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
flutter-mythbusting-03
class MyWidget2 extends StatefulWidget {
const MyWidget2({Key? key}) : super(key: key);
@override
_MyWidget2State createState() => _MyWidget2State();
}
class _MyWidget2State extends State<MyWidget2> {
@override
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