--

"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...

--

--

David Gonzalez
David Gonzalez

Written by David Gonzalez

Hi, I’m David, a french mobile applications developer. As a freelance, I work on Android and iOS applications since 2010. I also work on Flutter now !

Responses (1)