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),
|
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(
|
||||||
|
|||||||
@ -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),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user