From def95aeeb5be9fece6d61e4932e59b67621c09e0 Mon Sep 17 00:00:00 2001 From: maxxkim Date: Wed, 3 Jul 2024 17:45:36 +0300 Subject: [PATCH] refactor(diary): LocatorService reg --- lib/locator_service.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/locator_service.dart b/lib/locator_service.dart index fb2637ec..0328dc6f 100644 --- a/lib/locator_service.dart +++ b/lib/locator_service.dart @@ -9,6 +9,9 @@ import 'package:eatvio_app/features/chat/services/chat_service.dart'; import 'package:eatvio_app/features/feed/presentation/bloc/feed_cubit/feed_cubit.dart'; import 'package:eatvio_app/features/feed/repositories/feed_repository.dart'; import 'package:eatvio_app/features/feed/services/feed_service.dart'; +import 'package:eatvio_app/features/diary/presentation/bloc/diary_cubit.dart'; +import 'package:eatvio_app/features/diary/repositories/diary_repository.dart'; +import 'package:eatvio_app/features/diary/services/diary_service.dart'; import 'package:flutter_dotenv/flutter_dotenv.dart'; import 'package:get_it/get_it.dart'; @@ -21,16 +24,19 @@ Future init() async { sl.registerFactory(() => ChatRoomCubit(chatRepository: sl())); sl.registerFactory(() => FeedCubit(feedRepository: sl())); sl.registerFactory(() => BlogPostCubit(blogPostRepository: sl())); + sl.registerFactory(() => DiaryCubit(diaryRepository: sl())); // Repository sl.registerLazySingleton(() => ChatRepository(chatService: sl())); sl.registerLazySingleton(() => FeedRepository(feedService: sl())); sl.registerLazySingleton(() => BlogPostRepository(blogPostService: sl())); + sl.registerLazySingleton(() => DiaryRepository(diaryService: sl())); // Services sl.registerLazySingleton(() => ChatService(sl())); sl.registerLazySingleton(() => FeedService(sl())); sl.registerLazySingleton(() => BlogPostService(sl())); + sl.registerLazySingleton(() => DiaryService(sl())); // External sl.registerLazySingleton(