解决依赖注入

This commit is contained in:
2026-02-26 16:52:58 +08:00
parent 0fa3d2351b
commit abeae4107f

View File

@@ -109,7 +109,7 @@ Future<void> init() async {
/// 5. 状态管理 (Cubit/Bloc)
sl.registerLazySingleton(() => AppUserCubit()); // AuthCubit 依赖它,必须先注册
sl.registerLazySingleton(() => GetDeviceLocationUseCase(sl()));
sl.registerLazySingleton(() => DevicesCubit(sl(), sl(), sl()));
sl.registerLazySingleton(() => DevicesCubit( sl(), sl(), sl(), sl(), sl()));
sl.registerFactory(() => RemoteControlCubit(sl()));