From 18c3e37c1d9775e2268b89bb38d1a83e1c96de69 Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 21 Jul 2021 17:11:55 +0800 Subject: [PATCH] fix flutter warnings --- app_flowy/lib/home/infrastructure/deps_resolver.dart | 4 ++-- app_flowy/lib/welcome/infrastructure/i_welcome_impl.dart | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app_flowy/lib/home/infrastructure/deps_resolver.dart b/app_flowy/lib/home/infrastructure/deps_resolver.dart index cc7d6e6413..866d867881 100644 --- a/app_flowy/lib/home/infrastructure/deps_resolver.dart +++ b/app_flowy/lib/home/infrastructure/deps_resolver.dart @@ -7,8 +7,8 @@ import 'package:get_it/get_it.dart'; class HomeDepsResolver { static Future resolve(GetIt getIt) async { - getIt.registerLazySingleton( - () => WorkspaceRepository()); + getIt.registerFactoryParam( + (workspaceId, _) => WorkspaceRepository(workspaceId: workspaceId)); getIt.registerFactoryParam( (appId, _) => AppRepository(appId: appId)); diff --git a/app_flowy/lib/welcome/infrastructure/i_welcome_impl.dart b/app_flowy/lib/welcome/infrastructure/i_welcome_impl.dart index cf9c6882d9..dfc9b1e127 100644 --- a/app_flowy/lib/welcome/infrastructure/i_welcome_impl.dart +++ b/app_flowy/lib/welcome/infrastructure/i_welcome_impl.dart @@ -1,6 +1,3 @@ -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/presentation/home_screen.dart'; import 'package:app_flowy/user/presentation/sign_in/sign_in_screen.dart'; import 'package:app_flowy/welcome/domain/auth_state.dart';