mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-06 15:24:36 +00:00
fix: white screen when play song from artists screen
This commit is contained in:
parent
2cc8d2620d
commit
5fe94928c8
@ -33,7 +33,7 @@ extension SpotubeImageExtensions on List<SpotubeImageObject>? {
|
||||
int index = 1,
|
||||
required ImagePlaceholder placeholder,
|
||||
}) {
|
||||
final sortedImage = this?.sorted((a, b) => a.width!.compareTo(b.width!));
|
||||
final sortedImage = this?.sorted((a, b) => (a.width ?? 0).compareTo(b.width ?? 0));
|
||||
|
||||
return sortedImage != null && sortedImage.isNotEmpty
|
||||
? sortedImage[
|
||||
|
||||
Loading…
Reference in New Issue
Block a user