Compare commits

...

3 Commits

Author SHA1 Message Date
thumb2086
ec535ccdfc
Merge 19863b1226 into 00daded8e5 2026-03-16 17:52:35 -05:00
Kingkor Roy Tirtho
00daded8e5
Merge pull request #2919 from tomasalias/master
chore: fix white screen issue
2026-03-15 08:52:42 +06:00
tomasalias
f6734a0f9e chore: fix white screen issue 2026-01-02 18:01:41 +01:00

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[