You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I'm trying to print multiple invoices at the same time, I'm doing that by putting the code inside a block and then inside a for loop, but the results are the same line is printing repeatedly instead of the whole block being printed then the next loop and so on.
the code is:
for (int i = 0; i < amount; i++) {
await _printInvoice();
}
Future<void> _printInvoice(){
await SunmiPrinter.bindingPrinter();
await SunmiPrinter.startTransactionPrint();
await SunmiPrinter.setAlignment(SunmiPrintAlign.CENTER);
{the rest of the lines and texts}
await SunmiPrinter.cut();
await SunmiPrinter.submitTransactionPrint();
await SunmiPrinter.exitTransactionPrint();
await Future.delayed(const Duration(seconds: 1), () {});
}
The text was updated successfully, but these errors were encountered:
Hi
I'm trying to print multiple invoices at the same time, I'm doing that by putting the code inside a block and then inside a for loop, but the results are the same line is printing repeatedly instead of the whole block being printed then the next loop and so on.
the code is:
The text was updated successfully, but these errors were encountered: