Stateless vs Stateful Widget

Jeet BhaluJeet Bhalu
1 min read

Stateless WidgetStateful Widget
Static widgetsDynamic 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
0
Subscribe to my newsletter

Read articles from Jeet Bhalu directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jeet Bhalu
Jeet Bhalu

i am Jeet Bhalu i am flutter App developer