Widget in Flutter
Widget kinds
StatelessWidget
class TestWidget extends StatelessWidget{
const TestWiget({Key? key}) : super(key : key);
@override
Widget build(BuildContext context) {
return Container();
}
}
StatefulWidget
class TestWidget extends statefulWidget{
const TestWidget({Key? key}) : super(key : key);
@override
State<TestWidget> cerateStae() => _TestWidgetState();
}
class _TestWidgetState extends State<TestWidget>{
@override
Widget build(BuildConext context){
return Container();
}
}