There are two main types of widgets in Flutter. These include:
StatelessWidget– It does not have any state information. It is static throughout its lifecycle. Examples are Row, Text, Column, and Container.
StatefulWidget– It has state information. It contains two classes: the state object and the Widget. It is dynamic because it can change the inner data during the Widget’s lifetime. Examples are Radio, Form, Checkbox, and TextField.
Leave a Reply