fix: youtube_url => video_url

This commit is contained in:
mso7nueh
2024-11-25 15:47:54 +03:00
parent 35d3855613
commit e4bca86b9e
12 changed files with 76 additions and 76 deletions

View File

@@ -305,12 +305,12 @@ class RecipeCreateScreen extends StatelessWidget {
),
),
SizedBox(height: 24),
Text('Ссылка на видео (YouTube)'),
Text('Ссылка на видео (video)'),
SizedBox(height: 8),
CustomTextFormField(
hintText: 'Введите описание шага',
fillColor: appTheme.gray50,
controller: state.youtubeLinkController,
controller: state.videoLinkController,
),
SizedBox(height: 24),
Container(
@@ -500,7 +500,7 @@ class RecipeCreateScreen extends StatelessWidget {
description: state.stepDescriptionController.text,
title: state.titleController.text,
image: state.recipeImage?.path,
video_url: state.youtubeLinkController.text.isNotEmpty ? state.youtubeLinkController.text : null,
video_url: state.videoLinkController.text.isNotEmpty ? state.videoLinkController.text : null,
);
return recipe;

View File

@@ -310,12 +310,12 @@ class RecipeEditScreen extends StatelessWidget {
),
),
SizedBox(height: 24),
Text('Ссылка на видео (YouTube)'),
Text('Ссылка на видео (video)'),
SizedBox(height: 8),
CustomTextFormField(
hintText: 'Введите описание шага',
fillColor: appTheme.gray50,
controller: state.youtubeLinkController,
controller: state.videoLinkController,
),
SizedBox(height: 24),
Container(
@@ -509,7 +509,7 @@ class RecipeEditScreen extends StatelessWidget {
description: state.stepDescriptionController.text,
title: state.titleController.text,
image: state.recipeImage?.path,
video_url: state.youtubeLinkController.text.isNotEmpty ? state.youtubeLinkController.text : null,
video_url: state.videoLinkController.text.isNotEmpty ? state.videoLinkController.text : null,
);
return recipe;
}