1 year ago
#377349
DeKa
Start/max duration of my audio is not showing on slider
I'm new to flutter. I'm using audioplayers.
I want the max duration of my audio on the right, and the position of the audio on the left. First, I tried tried without provider and it works, Inistate code without provider, but as soon as I close the alertDialog, I got this error Inistate code without provider error. I know that if I use the dispose method it will work, but I need the audio playing outside of the alertDialog.
So then I tried with the provider : Initstate code with provider, AudioProvider for duration and Slider code. Now the thing that I do not understand, is why when I print the value of the position,it is good print, but it is not displayed in the Slider Slider on the app
flutter
slider
provider
0 Answers
Your Answer