Merge pull request #2919 from tomasalias/master

chore: fix white screen issue
This commit is contained in:
Kingkor Roy Tirtho 2026-03-15 08:52:42 +06:00 committed by GitHub
commit 00daded8e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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[