AppState not persisting even when its Persist is set true

Custom Code

I have this AppState variable which is a list and Persist is set to true as you can see in the screenshot below. But it is not persisting on app restart.


This is the custom code that i'm using to save it:

FFAppState().update(() {

          FFAppState().downloadedSounds.add(soundRef);

          currentDownloadStatus.downloadProgress = 0;

        });



So is there something missing in my code that should force it to persist? or is this some bug?

Thanks

What have you tried so far?

I have verified that it is working fine and saves the list but only when i restart the list is found to be empty.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
7 replies