Jul 1, 2022
"Always make use of Stateless Widgets rather than Stateful ones."
I think you missunderstand the point. Don't you use buttons in your applications ? They are statefull widgets you know...
The first question developer should ask itself is: for developping my new widget, do i need to retain its state ? Most of the time no, but if you want to create an animated widget, then maybe yes...