-
I'm trying to decide the best way to integrate a library, and I have two options:
At the moment, it seems like I can only go with option 2 because there isn't a function available to unsubscribe from the stream. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi :) Could you elaborate a little about what youre trying to do? Are you trying to handle every single signal from Rust, or just show something from the received signal on the screen? If latter, I would recommend using |
Beta Was this translation helpful? Give feedback.
In this case, I would use
NavigationBar
widget and simply putStreamBuilder
that listens to Rust messages inside each page. Since each page widget is stored in a list field ofNavigationBar
, each page will be not be disposed on tab switch; they will always maintain the latest state received from Rust.