Files
feature-next-arch/lib/features/ai/presentation/routes/ai_routes.dart

32 lines
1.0 KiB
Dart
Raw Normal View History

2026-01-18 20:21:14 +08:00
import 'package:go_router/go_router.dart';
import 'package:maibu_satabot_v2/features/ai/presentation/pages/ai_page.dart';
import '../../../../core/router/route_paths.dart';
class AiRoutes {
/// 1. 全屏功能页面(不带导航栏)
/// 在 createRouter 的根 routes 中使用 ...HomeRoutes.routes 引入
static List<RouteBase> get routes => [
// GoRoute(
// path: RoutePaths.remoteControl,
// builder: (context, state) => const RemoteControlPage(), // 需导入对应 Page
// ),
// GoRoute(
// path: RoutePaths.routePlan,
// builder: (context, state) => const RoutePlanPage(),
// ),
// GoRoute(
// path: RoutePaths.runningStatus,
// builder: (context, state) => const RunningStatusPage(),
// ),
];
/// 2. 首页 Tab 分支(带导航栏)
/// 仅保留真正的首页入口
static StatefulShellBranch get branch => StatefulShellBranch(
routes: [
GoRoute(path: RoutePaths.ai, builder: (context, state) => const AiPage()),
],
);
}