forked from eatvio/eatvio_app
diet creation scrren is done
This commit is contained in:
@@ -112,9 +112,14 @@ class AppRouter {
|
||||
GoRoute(
|
||||
path: '/about-plan-screen',
|
||||
name: 'aboutPlanScreen',
|
||||
builder: (context, state) => AboutPlanScreen(
|
||||
planModel: state.extra as PlanModel,
|
||||
),
|
||||
builder: (context, state) {
|
||||
final data = state.extra as Map<String, dynamic>;
|
||||
return AboutPlanScreen(
|
||||
plan: data['plan'] as PlanModel,
|
||||
// index: data['index'] as int,
|
||||
navigateToComments: data['navigateToComments'] as bool,
|
||||
);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
path: '/about-recipes-screen',
|
||||
|
||||
Reference in New Issue
Block a user