Compare commits

..

No commits in common. "00daded8e502bea117e160f92c8d8ffc3a664ad4" and "611f9d76d5ac0416972a381a6bd9d03c51c608a1" have entirely different histories.

View File

@ -33,7 +33,7 @@ extension SpotubeImageExtensions on List<SpotubeImageObject>? {
int index = 1,
required ImagePlaceholder placeholder,
}) {
final sortedImage = this?.sorted((a, b) => (a.width ?? 0).compareTo(b.width ?? 0));
final sortedImage = this?.sorted((a, b) => a.width!.compareTo(b.width!));
return sortedImage != null && sortedImage.isNotEmpty
? sortedImage[