ย ยทย FlutterFlow developer

Audio download to make it available for offline view

Hello everyone,
i am working with firebase.My app offers audio session for users,and i have a "download" functionality that should help me to be able to save the audio locally,so the user can go back to them offline within the app Not in the gallery.
My approach is to save the path or the bytes to AppState list of datatype.
i tried using http and dio libraries.but it seems not working fine.Any one have an idea how to achieve that?

7