AutomaticKeepAliveClientMixin with Fluent UI's NavigationView not working

Viewed 15

Im currently creating my first Desktop App:

NavigationView

  • NavigationPane
    • PaneItem(Downloads)
    • Paneitem(Settings)

The pane items are individual Stateful Widgets in classes, they are ScaffoldPages to be specific. I want to keep the state of "downloads" alive, when I switch back and forth between the two pages. The AutomaticKeepAliveClientMixin doesn't seem to work. From the Downloads Widget: (I followed the steps as described in the docs):

with AutomaticKeepAliveClientMixin<DownloadsTab>
bool get wantKeepAlive => true;
super.build(context);

Basically I'm loading YouTube Videos from an user-input into a ListView on the Downloads Tab, and when I switch to Settings and back, the list is empty again and the progress is lost.

I'm looking for a solution or an alternative.

Thanks for your time.

0 Answers
Related