接入高清场站地图

This commit is contained in:
mmc
2026-03-10 15:58:52 +08:00
parent 50fe5b5c19
commit 137c28d0f0
6 changed files with 93 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
import 'package:maibu_satabot_v2/features/home/presentation/pages/dj_page.dart';
import 'package:maibu_satabot_v2/features/home/presentation/pages/home_page.dart';
import '../../../../core/di/injection.dart';
@@ -22,13 +23,11 @@ class HomeRoutes {
child: const RemoteControlPage(),
),
),
GoRoute(
path: RoutePaths.routePlan,
builder: (context, state) => const RoutePlanPage(),
),
GoRoute(path: RoutePaths.routePlan, builder: (context, state) => const RoutePlanPage()),
GoRoute(path: RoutePaths.djMap, builder: (context, state) => const DjPage()),
GoRoute(
path: RoutePaths.runningStatus,
// builder: (context, state) => const RunningStatusPage(),
// builder: (context, state) => const RunningStatusPage(),
builder: (context, state) => BlocProvider(
create: (_) => sl<DeviceStatusBloc>(), // 从 GetIt 获取单例
child: const RunningStatusPage(),
@@ -39,11 +38,6 @@ class HomeRoutes {
/// 2. 首页 Tab 分支(带导航栏)
/// 仅保留真正的首页入口
static StatefulShellBranch get branch => StatefulShellBranch(
routes: [
GoRoute(
path: RoutePaths.home,
builder: (context, state) => const HomePage(),
),
],
routes: [GoRoute(path: RoutePaths.home, builder: (context, state) => const HomePage())],
);
}