mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-02-04 07:52:55 +00:00
chore: fix white screen issue
This commit is contained in:
parent
826c8e4dd6
commit
f6734a0f9e
@ -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[
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user