fix(feed): add blog post

This commit is contained in:
mso7nueh
2024-10-04 16:10:11 +03:00
parent 26820997fc
commit e5d23208d5
2 changed files with 17 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ class BlogPostCreateBloc extends Bloc<BlogPostCreateEvent, BlogPostCreateState>
'description': description,
'state': 'active',
'youtube_url': youtubeURL,
'image': await MultipartFile.fromFile(image!.path, filename: image.name),
'image': image != null ? await MultipartFile.fromFile(image.path, filename: image.name) : null,
});
final response = await sl<Dio>().post(