forked from eatvio/eatvio_app
fix: youtube_url => video_url
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user