multi_listenable 0.9.3 copy "multi_listenable: ^0.9.3" to clipboard
multi_listenable: ^0.9.3 copied to clipboard

A widget whose content stays synced with a list of Listenable.

multi_listenable #

A widget whose content stays synced with a list of Listenable.

Usage #

  • Add the as a dependency in your project with flutter pub add multi_listenable

  • Import package:multi_listenable/multi_listenable.dart in required files.

  • Use MultiValueListenableBuilder in your widget tree :

MultiListenableBuilder( 
	listenable: [ /* your listables to listen */],
	builder : (context) => Container(),
)

Parameters #

Iterable[Listenable] listenable #

An iterable of [Listenable] to listen. When one of the listenable notify, the builder function is called.

[WidgetBuilder] builder #

A function to call every time a [Listener] passed in [listenable] notify.

An exemple can be found here

0
likes
160
pub points
0%
popularity

Publisher

unverified uploader

A widget whose content stays synced with a list of Listenable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on multi_listenable