fix: videoDetail cover null

This commit is contained in:
guozhigq
2024-04-29 13:16:25 +08:00
parent 2d3550924d
commit 8d882f0220
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class EpisodeBottomSheet {
title = '${episode.title}${episode.longTitle!}';
break;
}
return isFullScreen || episode?.cover == null
return isFullScreen || episode?.cover == null || episode?.cover == ''
? ListTile(
onTap: () {
SmartDialog.showToast('切换至「$title');

View File

@ -412,8 +412,8 @@ class Part {
dimension = json["dimension"] == null
? null
: Dimension.fromJson(json["dimension"]);
firstFrame = json["first_frame"];
cover = json["first_frame"];
firstFrame = json["first_frame"] ?? '';
cover = json["first_frame"] ?? '';
}
Map<String, dynamic> toJson() {