feature(registration): add location endpoint with debounce

This commit is contained in:
mso7nueh
2024-07-28 18:39:36 +03:00
parent e472121bbc
commit 818721a993
13 changed files with 345 additions and 91 deletions

View File

@@ -72,9 +72,7 @@ class BlogPostCreateBloc extends Bloc<BlogPostCreateEvent, BlogPostCreateState>
if (response.statusCode == 200 || response.statusCode == 201) {
AppRouter.navigatorKey.currentContext?.goNamed('feedScreen');
} else {
print(
'Failed to create blog post. Status Code: ${response.statusCode} ${response.data}',
);
print('Failed to create blog post. Status Code: ${response.statusCode} ${response.data}');
}
}
}
@@ -85,7 +83,7 @@ class BlogPostCreateBloc extends Bloc<BlogPostCreateEvent, BlogPostCreateState>
FormData formData = FormData.fromMap({
'title': title,
'description': description,
'videoUrl': youtubeURL,
'youtube_url': youtubeURL,
'state': 'active',
'image': await MultipartFile.fromFile(image!.path, filename: image.name),
});