checkout page
This commit is contained in:
@@ -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',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user