multi_stream_builder 0.0.1 icon indicating copy to clipboard operation
multi_stream_builder: ^0.0.1 copied to clipboard

Flutter widget to replace multiple nester StreamBuilder/ValueListenableBuilder, allowing to combine both

Flutter widget to replace multiple nester StreamBuilder/ValueListenableBuilder, allowing to combine both

Getting started #

dependencies:
    multi_stream_builder: ^0.0.1

Usage #

Widget build(BuildContext context) {
  return MultiStreamBuilder(
    streams: [stream1, stream2],
    valuesListenable: [valueListenable1, valueListenable2],
    builder: (context, dataList) {
      final stream1Value = dataList[0];
      final stream2Value = dataList[1];
      final valueListenable1Value = dataList[2];
      final valueListenable2Value = dataList[3];
      return Text('$stream1Value, $stream2Value, $valueListenable1Value, $valueListenable2Value');
    },
  );
}
2
likes
140
pub points
76%
popularity

Publisher

unverified uploader

Flutter widget to replace multiple nester StreamBuilder/ValueListenableBuilder, allowing to combine both

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

collection, flutter, rxdart

More

Packages that depend on multi_stream_builder