update order page

This commit is contained in:
efrilm 2025-11-01 03:29:13 +07:00
parent fecb4fb5c1
commit d111025aa6
2 changed files with 16 additions and 10 deletions

View File

@ -34,6 +34,11 @@ class OrderCard extends StatelessWidget {
style: AppStyle.sm.copyWith(fontWeight: FontWeight.w600), style: AppStyle.sm.copyWith(fontWeight: FontWeight.w600),
), ),
), ),
if (order.splitType != '')
Text(
"Split Bill: ${order.splitType}",
style: AppStyle.sm.copyWith(fontWeight: FontWeight.w600),
),
if (order.isRefund == true) if (order.isRefund == true)
Container( Container(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(

View File

@ -104,16 +104,17 @@ class OrderRightPanel extends StatelessWidget {
icon: Icon(Icons.calculate_outlined), icon: Icon(Icons.calculate_outlined),
), ),
SpaceWidth(8), SpaceWidth(8),
AppElevatedButton.filled( if (state.selectedOrder?.paymentStatus != 'partial')
width: 120, AppElevatedButton.filled(
onPressed: () { width: 120,
context.router.push( onPressed: () {
PaymentRoute(order: state.selectedOrder!), context.router.push(
); PaymentRoute(order: state.selectedOrder!),
}, );
label: 'Bayar', },
icon: Icon(Icons.payment, color: Colors.white), label: 'Bayar',
), icon: Icon(Icons.payment, color: Colors.white),
),
], ],
], ],
), ),