29 lines
756 B
Dart
29 lines
756 B
Dart
import 'package:derma_flutter/api/dto/skin_check_dto.dart';
|
|
import 'package:derma_flutter/page/education/detail/education_detail_page.dart';
|
|
import 'package:derma_flutter/page/record/detail/record_detail_page.dart';
|
|
|
|
import '../config/route_paths.dart';
|
|
import '../config/route_type.dart';
|
|
|
|
List<RouteType> serverRoutes = [
|
|
RouteType(
|
|
path: RoutePaths.detail,
|
|
child: (state) {
|
|
// final params = state.pathParameters;
|
|
final extra = state.extra! as SkinCheckDto;
|
|
return RecordDetailPage(
|
|
data: extra,
|
|
);
|
|
},
|
|
),
|
|
RouteType(
|
|
path: RoutePaths.articleDetail(),
|
|
child: (state) {
|
|
final params = state.pathParameters;
|
|
return EducationDetailPage(
|
|
id: params['id']!,
|
|
);
|
|
},
|
|
),
|
|
];
|