fix add order item
This commit is contained in:
+5
-1
@@ -188,10 +188,14 @@ class SuccessAddItemOrderLeftPanel extends StatelessWidget {
|
||||
Expanded(
|
||||
child: AppElevatedButton.filled(
|
||||
onPressed: () {
|
||||
print("onPressed");
|
||||
print(checkoutState.orderAdded);
|
||||
final order = checkoutState.orderAdded;
|
||||
if (order == null) return;
|
||||
context.read<PrintStruckBloc>().add(
|
||||
PrintStruckEvent.order(
|
||||
Order.fromLastOrder(
|
||||
checkoutState.orderAdded!,
|
||||
order,
|
||||
checkoutState.items,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user