forked from eatvio/eatvio_app
feat(personalized_feed): added video and multiple images handling to detailed blog post screen
This commit is contained in:
@@ -22,7 +22,7 @@ abstract class FeedBlogPostModel with _$FeedBlogPostModel {
|
||||
@JsonKey(name: "total_comments") required int totalComments,
|
||||
@JsonKey(name: "was_liked_by_me") required bool wasLikedByMe,
|
||||
@Default([]) List<FeedGalleryImage> images,
|
||||
@JsonKey(name: "video_embed_url") String? videoEmbedUrl,
|
||||
@JsonKey(name: "video_url_embed") String? videoEmbedUrl,
|
||||
@JsonKey(name: "video_url_thumb") String? videoUrlThumb,
|
||||
}) = _FeedBlogPostModel;
|
||||
|
||||
|
||||
@@ -50,7 +50,9 @@ abstract class PostFeedItemModel with _$PostFeedItemModel {
|
||||
abstract class FeedGalleryImage with _$FeedGalleryImage {
|
||||
const factory FeedGalleryImage({
|
||||
required String url,
|
||||
required String orientation,
|
||||
@Default('horizontal') String orientation,
|
||||
int? id,
|
||||
int? position,
|
||||
}) = _FeedGalleryImage;
|
||||
|
||||
factory FeedGalleryImage.fromJson(Map<String, Object?> json) => _$FeedGalleryImageFromJson(json);
|
||||
|
||||
Reference in New Issue
Block a user