From a4ac503abd190b6bdaee2a7fa76f4c696a7ece21 Mon Sep 17 00:00:00 2001 From: Songzex <2402265378@qq.com> Date: Thu, 14 May 2026 14:18:37 +0800 Subject: [PATCH] =?UTF-8?q?-=E6=8F=90=E4=BA=A4-bug=E5=B7=B2=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 45fe5bf8..b09d40d0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -20,6 +20,7 @@ import 'core/localization/locale_cubit.dart'; import 'features/auth/presentation/bloc/auth_state.dart'; import 'features/auth/presentation/bloc/login_cubit.dart'; import 'features/devices/presentation/bloc/device_status_bloc.dart'; +import 'features/home/presentation/bloc/permission_request_bloc.dart'; void main() async { // 1. 使用 runZonedGuarded 捕获所有未处理的异步错误 @@ -80,6 +81,7 @@ class MyApp extends StatelessWidget { // 🔥 语言管理 Cubit BlocProvider.value(value: localeCubit), BlocProvider.value(value: sl()), + BlocProvider(create: (_) => sl()), // 其他 Cubit... ], child: BlocBuilder(