success order page

This commit is contained in:
efrilm
2025-10-28 15:43:51 +07:00
parent 137f3d9636
commit 59d4d4c0e5
13 changed files with 1094 additions and 50 deletions
@@ -9,6 +9,7 @@ import '../../../common/theme/theme.dart';
import '../../../injection.dart';
import '../../components/spaces/space.dart';
import '../../components/toast/flushbar.dart';
import '../../router/app_router.gr.dart';
import 'widgets/checkout_left_panel.dart';
import 'widgets/checkout_right_panel.dart';
@@ -26,7 +27,9 @@ class CheckoutPage extends StatelessWidget implements AutoRouteWrapper {
either.fold((f) => AppFlushbar.showOrderFailureToast(context, f), (
order,
) {
if (context.mounted) {}
if (context.mounted) {
context.router.replace(SuccessOrderRoute(order: order));
}
});
});
},