In this blog, we shall explore how to use the **ValueListenableBuilder **
widget. It is an amazing widget. It builds the widget every time the valueListenable
value changes. Its values remain synced with there listeners i.e. whenever the values change the ValueListenable
listen to it. It updates the UI without using setState()
or any other state management technique.
Properties:
These are the three properties of ValueListenableBuilder bulder build widget depending upon the valueListenable
value. valueListenable
is an instance of ValueNotifier
. child
property is optional, it can be null if valueListenable
value entirely depends upon the builder
widget.
#dart #flutter #mobile #flutter-widget #mobile-app-development