forked from eatvio/eatvio_app
fix: youtube_url => video_url
This commit is contained in:
@@ -29,7 +29,7 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
|
||||
XFile? image;
|
||||
final titleController = TextEditingController();
|
||||
final descriptionController = TextEditingController();
|
||||
final youtubeUrlController = TextEditingController();
|
||||
final videoUrlController = TextEditingController();
|
||||
bool isLoading = false;
|
||||
|
||||
@override
|
||||
@@ -141,7 +141,7 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
|
||||
blogPostCubit.createBlogPost(
|
||||
title: titleController.text,
|
||||
description: descriptionController.text,
|
||||
youtubeURL: youtubeUrlController.text,
|
||||
videoUrl: videoUrlController.text,
|
||||
image: image,
|
||||
);
|
||||
},
|
||||
@@ -167,15 +167,15 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
|
||||
minLines: 4,
|
||||
),
|
||||
SizedBox(height: 16),
|
||||
if (youtubeUrlController.text.isEmpty) Text('Изображение поста'),
|
||||
if (youtubeUrlController.text.isEmpty) SizedBox(height: 8),
|
||||
if (youtubeUrlController.text.isEmpty) _buildAddPhoto(),
|
||||
if (videoUrlController.text.isEmpty) Text('Изображение поста'),
|
||||
if (videoUrlController.text.isEmpty) SizedBox(height: 8),
|
||||
if (videoUrlController.text.isEmpty) _buildAddPhoto(),
|
||||
SizedBox(height: 16),
|
||||
if (image == null) Text('Ссылка на видео'),
|
||||
if (image == null) SizedBox(height: 8),
|
||||
if (image == null)
|
||||
CustomTextFormField(
|
||||
controller: youtubeUrlController,
|
||||
controller: videoUrlController,
|
||||
),
|
||||
SizedBox(height: 80),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user