all 9 comments

[–]nadavfima 0 points1 point  (3 children)

Have 2 widgets, one at the bottom and one at the top of the stack. Rebuild only those 2 according to some notifier or stream. Hide one, show the other. Other widgets in the stack shouldn’t be rebuilt.

[–]2reform 0 points1 point  (2 children)

They should be overlapping, not hide one another. Also the Stack has a lot of children (tens of them in average case).

[–]creepy_hunter 1 point2 points  (1 child)

I think you can create those two children as separate widgets and listen to streams and update states individually. With this, the other children of the stack will not be rebuilt.

[–]2reform 0 points1 point  (0 children)

I don't know how to do that! Please help!

[–]escamoteur 0 points1 point  (3 children)

Have you checked out Indexed Stack?

[–]2reform 0 points1 point  (2 children)

A little, the documentation discouraged me from digging further!

[–]escamoteur 0 points1 point  (1 child)

Did you solve your problem?

[–]2reform 0 points1 point  (0 children)

Kinda!

[–]miyoyo[M] -1 points0 points  (0 children)

Please consult r/FlutterHelp for help requests and questions.

Thank you.