♻️ Moved player state from shared_prefs to drift

🍱 Update icons
This commit is contained in:
2024-08-27 23:09:16 +08:00
parent a2bc08bbd9
commit c6b460315f
86 changed files with 2005 additions and 141 deletions

View File

@ -70,7 +70,11 @@ class _PlaylistTrackListState extends State<PlaylistTrackList> {
),
onTap: () {
if (item == null) return;
Get.find<AudioPlayerProvider>().load([item], autoPlay: true);
Get.find<AudioPlayerProvider>().load(
_tracks!,
initialIndex: idx,
autoPlay: true,
);
},
);
},