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

@@ -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),
],