Difference between StatelessWidget and StatefulWidget

 

FeatureStatelessWidgetStatefulWidget
DefinitionCan’t change once builtCan change at runtime
StateNo internal stateHas a mutable state
Use caseStatic UIDynamic UI
ExampleText, IconForm, Switch, Checkbox

Comments

Popular posts from this blog

1. What is Flutter?

What is FutureBuilder and StreamBuilder?