update order page
This commit is contained in:
parent
fecb4fb5c1
commit
d111025aa6
@ -34,6 +34,11 @@ class OrderCard extends StatelessWidget {
|
||||
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)
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
|
||||
@ -104,16 +104,17 @@ class OrderRightPanel extends StatelessWidget {
|
||||
icon: Icon(Icons.calculate_outlined),
|
||||
),
|
||||
SpaceWidth(8),
|
||||
AppElevatedButton.filled(
|
||||
width: 120,
|
||||
onPressed: () {
|
||||
context.router.push(
|
||||
PaymentRoute(order: state.selectedOrder!),
|
||||
);
|
||||
},
|
||||
label: 'Bayar',
|
||||
icon: Icon(Icons.payment, color: Colors.white),
|
||||
),
|
||||
if (state.selectedOrder?.paymentStatus != 'partial')
|
||||
AppElevatedButton.filled(
|
||||
width: 120,
|
||||
onPressed: () {
|
||||
context.router.push(
|
||||
PaymentRoute(order: state.selectedOrder!),
|
||||
);
|
||||
},
|
||||
label: 'Bayar',
|
||||
icon: Icon(Icons.payment, color: Colors.white),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user