Open scalable album art on tap

This commit is contained in:
kilowatt 2020-10-22 21:27:09 +03:00
parent df3b7d3d63
commit e959827cdb
4 changed files with 49 additions and 5 deletions

View file

@ -29,7 +29,7 @@ class PlayerHelper {
QueueSource queueSource;
LoopMode repeatType = LoopMode.off;
//Find queue index by id
int get queueIndex => AudioService.queue.indexWhere((mi) => mi.id == AudioService.currentMediaItem?.id??'Random string so it returns -1');
int get queueIndex => AudioService.queue == null ? 0 : AudioService.queue.indexWhere((mi) => mi.id == AudioService.currentMediaItem?.id??'Random string so it returns -1');
Future start() async {
//Subscribe to custom events