chore: fix white screen issue

This commit is contained in:
tomasalias 2026-01-02 18:01:41 +01:00
parent 826c8e4dd6
commit f6734a0f9e

View File

@ -33,7 +33,7 @@ extension SpotubeImageExtensions on List<SpotubeImageObject>? {
int index = 1, int index = 1,
required ImagePlaceholder placeholder, 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 return sortedImage != null && sortedImage.isNotEmpty
? sortedImage[ ? sortedImage[