feat(blogPostCreate): при вводе данных в текстовое поле, изображение уменьшается

This commit is contained in:
mso7nueh
2024-08-14 13:09:15 +03:00
parent 7a88a7fffc
commit eee0282de0
3 changed files with 83 additions and 52 deletions

View File

@@ -81,9 +81,9 @@ class BlogPostCreateBloc extends Bloc<BlogPostCreateEvent, BlogPostCreateState>
String url = baseUrl + '/api/blogPosts/create';
FormData formData = FormData.fromMap({
'title': title ?? '',
'description': description ?? '',
'youtube_url': youtubeURL ?? '',
'title': title,
'description': description,
'youtube_url': youtubeURL,
'state': 'active',
'image': await MultipartFile.fromFile(image!.path, filename: image.name),
});