I am learning Dart/flutter and trying to understand how Widgets system works. But I can\'t understand what difference between stateless and stateful widgets? For example I h
Check out the Flutter Interactivity Tutorial.
If your widget's build
method depends entirely on its immutable constructor arguments, you should use a StatelessWidget
because they're simpler. If you want to store some persistent private data that you expect to mutate over time, use a StatefulWidget
and store the data on the State
.