2021-07-22 09:06:53 +00:00
|
|
|
import 'package:app_flowy/workspace/application/edit_pannel/edit_pannel_bloc.dart';
|
2021-09-06 08:18:34 +00:00
|
|
|
import 'package:app_flowy/welcome/application/splash_bloc.dart';
|
2021-07-21 07:43:05 +00:00
|
|
|
import 'package:app_flowy/welcome/infrastructure/i_welcome_impl.dart';
|
2021-07-24 10:55:13 +00:00
|
|
|
import 'package:app_flowy/workspace/application/home/home_bloc.dart';
|
|
|
|
import 'package:app_flowy/workspace/application/home/home_watcher_bloc.dart';
|
2021-07-21 07:43:05 +00:00
|
|
|
import 'package:get_it/get_it.dart';
|
|
|
|
|
|
|
|
class WelcomeDepsResolver {
|
|
|
|
static Future<void> resolve(GetIt getIt) async {
|
2021-09-06 08:18:34 +00:00
|
|
|
getIt.registerFactory<ISplashAuth>(() => WelcomeAuthImpl());
|
2021-07-21 07:43:05 +00:00
|
|
|
getIt.registerFactory<IWelcomeRoute>(() => WelcomeRoute());
|
|
|
|
getIt.registerFactory<HomeBloc>(() => HomeBloc());
|
|
|
|
getIt.registerFactory<HomeWatcherBloc>(() => HomeWatcherBloc());
|
|
|
|
getIt.registerFactory<EditPannelBloc>(() => EditPannelBloc());
|
|
|
|
|
2021-09-06 08:18:34 +00:00
|
|
|
getIt.registerFactory<SplashBloc>(() => SplashBloc(getIt<ISplashAuth>()));
|
2021-07-21 07:43:05 +00:00
|
|
|
}
|
|
|
|
}
|