补充依赖注入。

This commit is contained in:
2026-02-28 09:01:57 +08:00
parent e36c1cae93
commit 4fd5877a3b

View File

@@ -110,7 +110,7 @@ Future<void> init() async {
sl.registerLazySingleton(() => AppUserCubit()); // AuthCubit 依赖它,必须先注册 sl.registerLazySingleton(() => AppUserCubit()); // AuthCubit 依赖它,必须先注册
sl.registerLazySingleton(() => GetDeviceLocationUseCase(sl())); sl.registerLazySingleton(() => GetDeviceLocationUseCase(sl()));
sl.registerLazySingleton( sl.registerLazySingleton(
() => DevicesCubit(sl(), sl(), sl(), sl(), sl(), sl(), sl()), () => DevicesCubit(sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl()),
); );
sl.registerFactory(() => RemoteControlCubit(sl())); sl.registerFactory(() => RemoteControlCubit(sl()));