Stateless Widget | Stateful Widget |
Static widgets | Dynamic Widgets |
They do not depend on any data change or any behaviour change. | They can be updated during runtime based on user action or data change. |
Stateless Widgets do not have a state. | Stateful Widgets have an internal state. |
They will be rendered once and will not update themselves, but will only be updated when external data changes. | They can re-render if the input data changes or if Widget’s state changes. |
For Example, Text, Icon, and RaisedButton are Stateless Widgets. | For Example Checkbox, Radio Button, and Slider are Stateful Widgets |