fix(feed): blog post image under description

This commit is contained in:
mso7nueh
2024-10-04 16:22:25 +03:00
parent e5d23208d5
commit ab2b0a253d

View File

@@ -100,9 +100,6 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (state.youtubeURL!.text.isEmpty) Text('Изображение поста'),
if (state.youtubeURL!.text.isEmpty) SizedBox(height: 8),
if (state.youtubeURL!.text.isEmpty) _buildAddPhoto(state),
SizedBox(height: 16),
Text('Заголовок'),
SizedBox(height: 8),
@@ -115,9 +112,13 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
CustomTextFormField(
controller: state.description,
maxLines: 6,
minLines: 1,
minLines: 4,
),
SizedBox(height: 16),
if (state.youtubeURL!.text.isEmpty) Text('Изображение поста'),
if (state.youtubeURL!.text.isEmpty) SizedBox(height: 8),
if (state.youtubeURL!.text.isEmpty) _buildAddPhoto(state),
SizedBox(height: 16),
if (state.image == null) Text('Ссылка на видео'),
if (state.image == null) SizedBox(height: 8),
if (state.image == null)