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?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this, one thing that confuse me is that if you call
setState
from theStatelessWidget
thebuild
function is called like aStatefullWidget
, can you explain me why? and why we should not useStatelessWidget
when we need to update the state of the widget after some actions?