28 lines
596 B
Dart
28 lines
596 B
Dart
import 'package:food_health/page/profile/edit/my_edit_page.dart';
|
|
|
|
import '../../page/record/detail/record_detail_page.dart';
|
|
import '../config/route_paths.dart';
|
|
import '../config/route_type.dart';
|
|
|
|
List<RouteType> serverRoutes = [
|
|
RouteType(
|
|
path: RoutePaths.myEdit,
|
|
child: (state) {
|
|
var extra = state.extra as dynamic;
|
|
return MyEditPage(
|
|
userProfile: extra,
|
|
);
|
|
},
|
|
),
|
|
|
|
RouteType(
|
|
path: RoutePaths.detail,
|
|
child: (state) {
|
|
var extra = state.extra as dynamic;
|
|
return RecordDetailPage(
|
|
detail: extra,
|
|
);
|
|
},
|
|
),
|
|
];
|