0 purchases
value watcher
Super simple Builder widget to listen ValueNotifier changes
Using #
define your ValueNotifier
final counter = ValueNotifier(0);
copied to clipboard
use a context.watch inside a WatcherBuilder to listen changes
WatcherBuilder(
builder: (context) {
final value = context.watch(counter);
return Text('value $value');
},
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.