diff --git a/lib/features/blog_post/presentation/cubit/blog_post_cubit.dart b/lib/features/blog_post/presentation/cubit/blog_post_cubit.dart index 02196288..844c8043 100644 --- a/lib/features/blog_post/presentation/cubit/blog_post_cubit.dart +++ b/lib/features/blog_post/presentation/cubit/blog_post_cubit.dart @@ -11,7 +11,9 @@ class BlogPostCubit extends Cubit { Future getBlogPost(int id) async { try { emit(state.copyWith(isLoading: true)); + final postModel = await feedRepository.getBlogPost(id: id); + emit(state.copyWith(blogPostModel: postModel, isLoading: false)); } catch (e, st) { log(e.toString(), stackTrace: st);