mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-06-20 18:08:04 +00:00
fix: custom image helper null exception
This commit is contained in:
parent
e1149537b1
commit
33e1f3bef5
@ -33,7 +33,8 @@ 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 ?? 0).compareTo(b.width ?? 0));
|
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