What is the difference between StatefulBuilder and StatefulWidget? When one should be used instead of the other?
At first glance they seem similar.
StatefulBuilder is defined:
A platonic widget that both has state and calls a closure to obtain its child widget
While StatefulBuilder is defined:
A widget that has mutable state