Even if you await loadMedia, it still seems to return even when it hasn't finished. It gets really noticeable when deleting a lot of media files (tested around 200) on a relatively slow device. I had to use await Future.delayed() after every loadMedia just to prevent it from bottlenecking.
Even if you await loadMedia, it still seems to return even when it hasn't finished. It gets really noticeable when deleting a lot of media files (tested around 200) on a relatively slow device. I had to use await Future.delayed() after every loadMedia just to prevent it from bottlenecking.