forked from eatvio/eatvio_app
fix(feed): add blog post
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user