forked from eatvio/eatvio_app
Merge pull request 'Plans creation has been completed' (#401) from misha/eatvio_app:main into main
Reviewed-on: eatvio/eatvio_app#401
This commit is contained in:
@@ -174,7 +174,10 @@ class AppRouter {
|
||||
GoRoute(
|
||||
path: CardSettingsScreen.path,
|
||||
name: CardSettingsScreen.name,
|
||||
builder: (context, state) => const CardSettingsScreen(),
|
||||
builder: (context, state) {
|
||||
final chosenPlanId = state.extra as int?;
|
||||
return CardSettingsScreen(chosenPlanId: chosenPlanId);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
path: '/about-plan-screen',
|
||||
@@ -220,7 +223,8 @@ class AppRouter {
|
||||
builder: (context, state) {
|
||||
final data = state.extra as Map<String, dynamic>;
|
||||
final chatId = data['chatId'] as String;
|
||||
return ChatScreen(chatId: chatId);
|
||||
final sendInitialMessage = data['sendInitialMessage'] as bool;
|
||||
return ChatScreen(chatId: chatId, sendInitialMessage: sendInitialMessage,);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
|
||||
Reference in New Issue
Block a user