Skip to content

managing streams in dart #482

Answered by temeddix
poborin asked this question in Q&A
Nov 7, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

In this case, I would use NavigationBar widget and simply put StreamBuilder that listens to Rust messages inside each page. Since each page widget is stored in a list field of NavigationBar, each page will be not be disposed on tab switch; they will always maintain the latest state received from Rust.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@poborin
Comment options

@temeddix
Comment options

Answer selected by poborin
@temeddix
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants