6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 4b7f5728
Changed files
comwell_key_app/lib/check_out/check_out_flow.dart | 7 +++++-- comwell_key_app/lib/check_out/pages/check_out_processing_page.dart | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-)
Diff
diff --git a/comwell_key_app/lib/check_out/check_out_flow.dart b/comwell_key_app/lib/check_out/check_out_flow.dart
index 59158df0..e20d27a4 100644
--- a/comwell_key_app/lib/check_out/check_out_flow.dart
+++ b/comwell_key_app/lib/check_out/check_out_flow.dart
@@ -27,9 +27,12 @@ class CheckOutFlow extends StatelessWidget {
await Future<void>.delayed(const Duration(seconds: 1));
await cubit.checkOut();
if (cubit.state.successfulCheckout && context.mounted) {
- context.push(AppRoutes.checkOutSuccess, extra: cubit.booking.digitalCard);
+ context.push(
+ AppRoutes.checkOutSuccess,
+ extra: [cubit.booking.digitalCard, cubit.booking],
+ );
} else if (cubit.state.hasCheckoutError && context.mounted) {
- context.push(AppRoutes.checkOutError);
+ context.push(AppRoutes.checkOutError, extra: cubit.booking);
}
}
},
diff --git a/comwell_key_app/lib/check_out/pages/check_out_processing_page.dart b/comwell_key_app/lib/check_out/pages/check_out_processing_page.dart
index 67f195f7..b649c01f 100644
--- a/comwell_key_app/lib/check_out/pages/check_out_processing_page.dart
+++ b/comwell_key_app/lib/check_out/pages/check_out_processing_page.dart
@@ -74,7 +74,10 @@ class _CheckOutProcessingPageState extends State<CheckOutProcessingPage>
previous.hasCheckoutError != current.hasCheckoutError,
listener: (context, state) {
if (state.successfulCheckout) {
- context.push(AppRoutes.checkOutSuccess, extra: cubit.booking.digitalCard);
+ context.push(
+ AppRoutes.checkOutSuccess,
+ extra: [cubit.booking.digitalCard, cubit.booking],
+ );
} else if (state.hasCheckoutError) {
context.push(AppRoutes.checkOutError, extra: cubit.booking);
}