diff --git a/lib/features/presentation/controllers/post_controller.dart b/lib/features/presentation/controllers/post_controller.dart index 49153f9..31e7d24 100644 --- a/lib/features/presentation/controllers/post_controller.dart +++ b/lib/features/presentation/controllers/post_controller.dart @@ -2,6 +2,12 @@ import 'package:fetch_api_with_proper_architecure/features/data/models/post_resp import 'package:fetch_api_with_proper_architecure/features/respository/post_respository.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +final postControllerProvider = + StateNotifierProvider>>( + (ref) { + return PostController(ref.watch(repoPostProvider)); +}); + class PostController extends StateNotifier>> { PostController(this._postRepository) : super(const AsyncValue.loading()) {