Files
conti-retail-app/packages/feature_home/lib/src/routes.dart
T
2026-08-17 15:29:55 +08:00

20 lines
638 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// 本 feature 对外暴露的路由。来源:conti-docs/04-routing.md。
library;
import 'package:core_router/core_router.dart';
import 'package:flutter/widgets.dart';
import 'presentation/home_page.dart';
/// 工作台路由。
///
/// 拼装在 `app/` 的 `appRoutesProvider` 里完成——core_router 不依赖任何
/// featurefeature 之间也不互相 import。`GoRoute` 来自 core_router 的
/// re-export,本包 pubspec 里没有 go_router。
List<RouteBase> buildHomeRoutes() => <RouteBase>[
GoRoute(
path: AppRoutes.home,
builder: (BuildContext context, GoRouterState state) => const HomePage(),
),
];