|
@@ -1,8 +1,16 @@
|
|
|
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/domain/i_auth.dart';
|
|
|
+import 'package:app_flowy/user/domain/i_splash.dart';
|
|
|
import 'package:app_flowy/user/infrastructure/repos/auth_repo.dart';
|
|
|
import 'package:app_flowy/user/infrastructure/i_auth_impl.dart';
|
|
|
+import 'package:app_flowy/user/infrastructure/i_splash_impl.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:app_flowy/workspace/application/home/home_auth_bloc.dart';
|
|
|
+import 'package:app_flowy/workspace/domain/i_user.dart';
|
|
|
+import 'package:app_flowy/workspace/infrastructure/i_user_impl.dart';
|
|
|
import 'package:get_it/get_it.dart';
|
|
|
|
|
|
class UserDepsResolver {
|
|
@@ -16,5 +24,17 @@ class UserDepsResolver {
|
|
|
//Bloc
|
|
|
getIt.registerFactory<SignInBloc>(() => SignInBloc(getIt<IAuth>()));
|
|
|
getIt.registerFactory<SignUpBloc>(() => SignUpBloc(getIt<IAuth>()));
|
|
|
+
|
|
|
+ getIt.registerFactory<ISplashUser>(() => SplashUserImpl());
|
|
|
+ getIt.registerFactory<ISplashRoute>(() => SplashRoute());
|
|
|
+ getIt.registerFactory<HomeBloc>(() => HomeBloc());
|
|
|
+ getIt.registerFactory<EditPannelBloc>(() => EditPannelBloc());
|
|
|
+ getIt.registerFactory<SplashBloc>(() => SplashBloc(getIt<ISplashUser>()));
|
|
|
+
|
|
|
+ getIt.registerFactoryParam<HomeAuthBloc, UserProfile, void>(
|
|
|
+ (user, _) => HomeAuthBloc(
|
|
|
+ getIt<IUserWatch>(param1: user),
|
|
|
+ ),
|
|
|
+ );
|
|
|
}
|
|
|
}
|