fix checkout/cart

This commit is contained in:
Phuoc Nguyen
2025-11-20 10:44:51 +07:00
parent 0708ed7d6f
commit 1fcef52d5e
7 changed files with 271 additions and 100 deletions

View File

@@ -230,8 +230,12 @@ final routerProvider = Provider<GoRouter>((ref) {
GoRoute(
path: RouteNames.checkout,
name: RouteNames.checkout,
pageBuilder: (context, state) =>
MaterialPage(key: state.pageKey, child: const CheckoutPage()),
pageBuilder: (context, state) => MaterialPage(
key: state.pageKey,
child: CheckoutPage(
checkoutData: state.extra as Map<String, dynamic>?,
),
),
),
// Favorites Route