How to set state from another widget?

Posted by Andre Scott | Updated on

Want to set state from another widget in flutter? You can use combine Listenable/Stream with respectively ValueListenableBuilder and StreamBuilder which both do the listening/update part for you.

Below is a quick example with Listenable:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers