mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
20 lines
888 B
Dart
20 lines
888 B
Dart
import 'package:app_flowy/home/application/edit_pannel/edit_pannel_bloc.dart';
|
|
import 'package:app_flowy/home/application/home_bloc.dart';
|
|
import 'package:app_flowy/home/application/watcher/home_watcher_bloc.dart';
|
|
import 'package:app_flowy/welcome/application/welcome_bloc.dart';
|
|
import 'package:app_flowy/welcome/infrastructure/i_welcome_impl.dart';
|
|
import 'package:get_it/get_it.dart';
|
|
|
|
class WelcomeDepsResolver {
|
|
static Future<void> resolve(GetIt getIt) async {
|
|
getIt.registerFactory<IWelcomeAuth>(() => WelcomeAuthImpl());
|
|
getIt.registerFactory<IWelcomeRoute>(() => WelcomeRoute());
|
|
getIt.registerFactory<HomeBloc>(() => HomeBloc());
|
|
getIt.registerFactory<HomeWatcherBloc>(() => HomeWatcherBloc());
|
|
getIt.registerFactory<EditPannelBloc>(() => EditPannelBloc());
|
|
|
|
getIt
|
|
.registerFactory<WelcomeBloc>(() => WelcomeBloc(getIt<IWelcomeAuth>()));
|
|
}
|
|
}
|