DEV Community

Discussion on: Flutter: Difference Between Stateful and Stateless Widget

Collapse
 
danielgomezrico profile image
Daniel Gomez

Thanks for this, one thing that confuse me is that if you call setState from the StatelessWidget the build function is called like a StatefullWidget, can you explain me why? and why we should not use StatelessWidget when we need to update the state of the widget after some actions?