✨ Infinite playing
💄 Optimized UX
This commit is contained in:
@@ -114,7 +114,11 @@ class PlaylistDetailScreen extends HookConsumerWidget {
|
||||
List<Track> tracks, {
|
||||
int initialIndex = 0,
|
||||
}) {
|
||||
final loadingNotifier = ref.read(remoteTrackLoadingProvider.notifier);
|
||||
final audioHandler = ref.read(audioHandlerProvider);
|
||||
audioHandler.playTracks(tracks, initialIndex: initialIndex);
|
||||
loadingNotifier.setLoading(true);
|
||||
audioHandler.playTracks(tracks, initialIndex: initialIndex).then((_) {
|
||||
loadingNotifier.setLoading(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user