forked from eatvio/eatvio_app
feat(feed, profile): добавлен переход на страинцу автора в посте, рецепте и дете. при нажатии на изображение в рецепте и диеты теперь переход на страницу с подробнее.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:eatvio_app/features/feed/models/diets_pagination_model.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'recipes_model.freezed.dart';
|
||||
@@ -22,6 +23,7 @@ class Recipes with _$Recipes {
|
||||
@JsonKey(name: 'total_comments') required int commentsCount,
|
||||
@JsonKey(name: 'total_likes') required int likesCount,
|
||||
@JsonKey(name: 'total_views') required int viewsCount,
|
||||
required Author author,
|
||||
}) = _Recipes;
|
||||
|
||||
factory Recipes.fromJson(Map<String, Object?> json) => _$RecipesFromJson(json);
|
||||
|
||||
Reference in New Issue
Block a user