update total price

This commit is contained in:
efrilm
2025-10-25 03:03:44 +07:00
parent 013f313e35
commit 0e83d213fc
9 changed files with 401 additions and 60 deletions
@@ -21,10 +21,10 @@ class VariantDialog extends StatelessWidget {
return GestureDetector(
onTap: () {
// Aksi saat varian dipilih
// context.pop();
// context.read<CheckoutBloc>().add(
// CheckoutEvent.addItem(product, variant),
// );
context.maybePop();
context.read<CheckoutFormBloc>().add(
CheckoutFormEvent.addItem(product, variant),
);
},
child: Container(
width: (context.deviceWidth * 0.4 - 12 - 32) / 2 - 6, // 2 per row