Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Indy9000
Created August 1, 2021 19:32
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 Indy9000/48836bc047f43c3657e5fa3a107c66e5 to your computer and use it in GitHub Desktop.
Save Indy9000/48836bc047f43c3657e5fa3a107c66e5 to your computer and use it in GitHub Desktop.
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