-暂提交-bug未处理

This commit is contained in:
2026-05-13 10:34:07 +08:00
parent 4b3ad72627
commit fb529b2485
10 changed files with 501 additions and 121 deletions

View File

@@ -15,7 +15,7 @@ import '../pages/route_plan_page.dart';
import '../pages/running_status_page.dart';
class HomeRoutes {
/// 1. 全屏功能页面(不带导航栏)
/// 全屏功能页面(不带导航栏)
/// 在 createRouter 的根 routes 中使用 ...HomeRoutes.routes 引入
static List<RouteBase> get routes => [
GoRoute(
@@ -38,16 +38,4 @@ class HomeRoutes {
),
),
];
/// 2. 首页 Tab 分支(带导航栏)
/// 仅保留真正的首页入口
static StatefulShellBranch get branch => StatefulShellBranch(
routes: [GoRoute(
path: RoutePaths.home,
builder: (context, state) => BlocProvider.value(
value: sl<PermissionRequestBloc>(), // 使用全局单例,持久监听 0x12
child: const HomePage(),
),
)],
);
}