forked from eatvio/eatvio_app
feat(feed, profile): добавлен переход на страинцу автора в посте, рецепте и дете. при нажатии на изображение в рецепте и диеты теперь переход на страницу с подробнее.
This commit is contained in:
@@ -182,4 +182,4 @@ class DiaryEditErrorState extends DiaryEditState {
|
||||
|
||||
@override
|
||||
List<Object> get props => [errorMessage];
|
||||
}*/
|
||||
}*/
|
||||
|
||||
@@ -1250,4 +1250,4 @@ bool checkConsumedValues(List<int> recommendedValues, List<int> consumedValues)
|
||||
// Если ни одно потребленное значение не превышает рекомендованное с соответствующим индексом
|
||||
return false; // Возвращаем true
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
||||
@@ -10,6 +10,7 @@ class DiaryEditModel extends Equatable {
|
||||
|
||||
List<SelectionPopupModel> mealList;
|
||||
List<SelectionPopupModel>? portionList;
|
||||
|
||||
DiaryEditModel copyWith({
|
||||
List<SelectionPopupModel>? mealList,
|
||||
List<SelectionPopupModel>? portionList,
|
||||
|
||||
@@ -14,6 +14,7 @@ class DietEditState extends Equatable {
|
||||
|
||||
@override
|
||||
List<Object?> get props => [dietModelObj];
|
||||
|
||||
DietEditState copyWith({DietEditModel? dietModelObj}) {
|
||||
return DietEditState(
|
||||
dietModelObj: dietModelObj ?? this.dietModelObj,
|
||||
@@ -35,8 +36,10 @@ class DietEditLoadedState extends DietEditState {
|
||||
TextEditingController? name;
|
||||
TextEditingController? details;
|
||||
TextEditingController? duration;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [dietModelObj, diet, name, details, duration];
|
||||
|
||||
DietEditLoadedState copyWith({
|
||||
DietEditModel? dietModelObj,
|
||||
Map<String, dynamic>? diet,
|
||||
|
||||
@@ -81,9 +81,9 @@ class BlogPostCreateBloc extends Bloc<BlogPostCreateEvent, BlogPostCreateState>
|
||||
String url = baseUrl + '/api/blogPosts/create';
|
||||
|
||||
FormData formData = FormData.fromMap({
|
||||
'title': title,
|
||||
'description': description,
|
||||
'youtube_url': youtubeURL,
|
||||
'title': title ?? '',
|
||||
'description': description ?? '',
|
||||
'youtube_url': youtubeURL ?? '',
|
||||
'state': 'active',
|
||||
'image': await MultipartFile.fromFile(image!.path, filename: image.name),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user