Stateful Widget
A Stateless widget is a widget that can change its state.
To make a stateful widget, you have to do this:
class name extends StatefulWidget {
@override
State<name> createState() => _name();
}
class _name extends State<name> {
@override
Widget build(BuildContext context) {
return //here the Widgets example 👉 Container()
);
}
}
Last updated