Using Navigator in Stream Builder

89 views
Skip to first unread message

Rakesh Singh

unread,
Mar 31, 2021, 10:50:20 AM3/31/21
to Flutter Development (flutter-dev)
I want to build a list whose children are wrapped with StreamBuilder. I am using Navigator.push() inside the StremBuilder but when the Stream gets update the new page (to which I routed using Navigator) is not updating.
I know it is happening because new page is not the descendent of StreamBuilder but I want to know how to fix this or if there is some other method through which I can achieve it.

Below are the images of my widget Tree for reference-
 widgetTree1.jpgwidgetTree2.jpg 

Reply all
Reply to author
Forward
0 new messages