feat: order type

This commit is contained in:
efrilm
2025-08-02 16:12:13 +07:00
parent 7b64ca2bb3
commit 09a812d417
5 changed files with 141 additions and 38 deletions
@@ -118,6 +118,44 @@ class _ConfirmPaymentPageState extends State<ConfirmPaymentPage> {
subtitle: widget.isTable
? 'Orders Table ${widget.table?.tableName}'
: 'Orders #1',
actionWidget: [
BlocBuilder<CheckoutBloc, CheckoutState>(
builder: (context, state) {
return state.maybeWhen(
orElse: () => const SizedBox(),
loaded: (products,
discountModel,
discount,
discountAmount,
tax,
serviceCharge,
totalQuantity,
totalPrice,
draftName,
orderType) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.0),
border: Border.all(
color: AppColors.primary,
width: 1.0,
),
),
padding: const EdgeInsets.all(8.0),
child: Text(
orderType.value,
style: TextStyle(
color: AppColors.primary,
fontSize: 16,
fontWeight: FontWeight.w600,
),
),
);
},
);
},
),
],
),
Container(
padding: const EdgeInsets.all(16.0).copyWith(bottom: 8),