Closed jonathanMNg closed 4 months ago
Never mind. I'm an idiot. I figured out what I did wrong. I called
return ListTile(title: Text(playlist.items?[index].name ?? ""),);
instead of
return ListTile(title: Text(state.audioTrackList[index].name ?? ""),);
Closing this now.
Description Maybe this is not a bug, but I can't figure out what I did wrong. I'm making a music player app that let the user download and listen to the music.
I'm having a problem at the "Add Track to Playlist" In this screen, the user will see a list of tracks that they already downloaded, and they can add them to their existing playlist, then close the screen. The problem is, after the tracks are added to the Playlist, the items list isn't updated when the "Add Track to Playlist" screen is closed, but if they exit out of the playlist, then go back, the added tracks then showed up.
Here is my code: Models:
State
Event
Bloc
Playlist Screen
Screenshots
Please help.