Search

Items tagged with: fluttertip


The media in this post is not displayed to visitors. To view it, please go to the original post.


unkn - Link to source

#Flutter tip: avoid calling setState() in a long build method or all the child widgets in it will rebuild!

The best solution would be to destructure your build method into multiple small widgets. But if you can’t do that for some case, use the #ValueNotifier widget

#FlutterTip



The media in this post is not displayed to visitors. To view it, please go to the original post.

I may have to try this. I've been using optional arguments with defaults for this instead. For more complex objects this can be more expressive. I've used it for other components (data, service, etc.) but never Widgets.


🧐 Flutter #refactoring tip
Make your widgets more readable using factories

#flutterdev #flutter #fluttertip

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.

⇧