1
This commit is contained in:
@@ -11,9 +11,15 @@ List<RouteType> planRoutes = [
|
||||
},
|
||||
),
|
||||
RouteType(
|
||||
path: RoutePaths.planDetail,
|
||||
path: RoutePaths.planDetail(),
|
||||
child: (state) {
|
||||
return PlanDetailPage();
|
||||
final id = state.pathParameters['id'];
|
||||
final extraMap = state.extra as Map<String, dynamic>?;
|
||||
|
||||
return PlanDetailPage(
|
||||
id: id,
|
||||
planName: extraMap?['name'],
|
||||
);
|
||||
},
|
||||
),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user