Merge branch 'feature/my' of http://1.95.137.212:57001/APP/FlutterApp into feature/my

This commit is contained in:
mmc
2026-03-16 09:29:31 +08:00
3 changed files with 74 additions and 14 deletions

View File

@@ -185,8 +185,8 @@ Future<void> init() async {
sl.registerLazySingleton(() => AppUserCubit()); // AuthCubit 依赖它,必须先注册
sl.registerLazySingleton(() => GetDeviceLocationUseCase(sl()));
sl.registerLazySingleton(() => DevicesCubit(sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(),sl(),sl(),sl()));
sl.registerFactory(() => RemoteControlCubit(sl(),sl()));
/* // 工厂模式(留存,每次获取新实例)
sl.registerFactory(() => RemoteControlCubit(sl(),sl(),sl()));
/* // 工厂模式(留存,每次获取新实例)r
sl.registerFactory(() => DeviceStatusBloc(sl<NetMessageDispatcher>()));
*/