import 'package:go_router/go_router.dart'; import 'package:maibu_satabot_v2/features/my/presentation/pages/my_page.dart'; import '../../../../core/router/route_paths.dart'; class MyRoutes { /// 1. 全屏功能页面(不带导航栏) /// 在 createRouter 的根 routes 中使用 ...HomeRoutes.routes 引入 static List 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.my, builder: (context, state) => const MyPage()), ], ); }