checkout page

This commit is contained in:
efrilm
2025-10-27 01:54:35 +07:00
parent e8fd683077
commit 3135dde317
9 changed files with 530 additions and 64 deletions
@@ -1,5 +1,6 @@
import 'dart:developer';
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
@@ -10,6 +11,7 @@ import '../../../../../components/button/button.dart';
import '../../../../../components/card/order_menu.dart';
import '../../../../../components/spaces/space.dart';
import '../../../../../components/toast/flushbar.dart';
import '../../../../../router/app_router.gr.dart';
import 'home_right_title.dart';
class HomeRightPanel extends StatelessWidget {
@@ -146,7 +148,8 @@ class HomeRightPanel extends StatelessWidget {
elevation: 1,
disabled: state.items.isEmpty,
onPressed: () {
if (state.orderType.name == 'dineIn') {
if (state.orderType.name == 'dineIn' &&
state.table == null) {
AppFlushbar.showError(
context,
'Mohon pilih meja terlebih dahulu',
@@ -161,12 +164,7 @@ class HomeRightPanel extends StatelessWidget {
);
return;
}
// context.push(
// ConfirmPaymentPage(
// isTable: widget.table == null ? false : true,
// table: widget.table,
// ),
// );
context.router.push(CheckoutRoute());
},
label: 'Lanjutkan Pembayaran',
),