12345678910111213141516171819202122232425262728293031 |
- import 'package:auto_route/auto_route.dart';
- import 'package:flutter/material.dart';
- import 'package:router/ext/auto_router_extensions.dart';
- import 'package:router/path/router_path.dart';
- import '../../modules/services/homeService/home_service_page.dart';
- import '../../modules/services/services_page.dart';
- part 'services_page_router.gr.dart';
- /*\
- * services模块的路由
- */
- @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
- class ServicesPageRouter extends _$ServicesPageRouter {
- @override
- List<AutoRoute> get routes => [
- CustomRoute(
- page: ServicesPageRoute.page,
- path: RouterPath.services,
- transitionsBuilder: applySlideTransition,
- children: [
- CustomRoute(
- page: HomeServicePageRoute.page,
- path: 'home_service',
- transitionsBuilder: applySlideTransition
- ),
- ]
- ),
- ];
- }
|