import 'package:app_flowy/user/application/auth_service.dart'; import 'package:app_flowy/user/application/sign_in_bloc.dart'; import 'package:app_flowy/user/application/sign_up_bloc.dart'; import 'package:app_flowy/user/application/splash_bloc.dart'; import 'package:app_flowy/user/presentation/router.dart'; import 'package:app_flowy/workspace/application/edit_pannel/edit_pannel_bloc.dart'; import 'package:app_flowy/workspace/application/home/home_bloc.dart'; import 'package:get_it/get_it.dart'; import '../core/network_monitor.dart'; class UserDepsResolver { static Future resolve(GetIt getIt) async { getIt.registerFactory(() => AuthService()); //Interface implementation getIt.registerFactory(() => AuthRouter()); //Bloc getIt.registerFactory(() => SignInBloc(getIt())); getIt.registerFactory(() => SignUpBloc(getIt())); getIt.registerFactory(() => SplashRoute()); getIt.registerFactory(() => HomeBloc()); getIt.registerFactory(() => EditPannelBloc()); getIt.registerFactory(() => SplashBloc()); getIt.registerLazySingleton(() => NetworkListener()); } }