Is there any case possible using StreamBuilder for other widgets other than ListView and GridView...?
Let's say ChoiceChip? Why ChoiceChip doesn't have builder?
Yes. we can use any other widget with Stream see official docs
StreamBuilder(
stream: bloc.allMovies,
builder: (context, AsyncSnapshot<ItemModel> snapshot) {
if (snapshot.hasData) {
return Text("data incoming");
} else if (snapshot.hasError) {
return Text(snapshot.error.toString());
}
return Center(child: CircularProgressIndicator());
},
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With