How can you nest StreamBuilders in Flutter?

前端 未结 2 1878
-上瘾入骨i
-上瘾入骨i 2021-01-07 00:16

I have 2 Streams that I need to combine to build a widget, but unlike other questions I have seen I need to nest my streams.

I have a stream that gets a collection

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-07 00:44

    Try merging your streams with something like Observable.zip2(stream1,stream2,zipper) or Observable.combineLatest2(streamA, streamB, combiner).

    For more info, check this post

提交回复
热议问题