We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi , I am using the package but I want to network print on windows , the code :
` Future printReceipt( RestaurantDataProvider resProvider, PrintersProvider printersProvider, Order order, UserProvider userPrvider, paid, returnvalue) async { const PaperSize paper = PaperSize.mm80; final profile = await CapabilityProfile.load(); final printer = NetworkPrinter(paper, profile);
await printersProvider.getPrinters(); final PosPrintResult res = await printer.connect( printersProvider.printers .where((v) => v['name'] == "main" || v['name'] == "cashier") .first['ip'], port: 9100, timeout: Duration(seconds: 20)); if (res == PosPrintResult.success) { // DEMO RECEIPT final image = await generateBill( resProvider, order, userPrvider.cashierUser!, paid, returnvalue); await testReceipt(printer, image); printer.drawer(pin: PosDrawer.pin2); printer.disconnect(); } List qps = []; for (var order in order.order) { final qp = printersProvider.printers.where((p) { return (p['cc'] as List).contains(order.category); }); qps.addAll(qp); } for (var printerrr in qps) { if (printerrr['name'] != 'cashier') { final List<Item> items = []; for (var cat in printerrr['cc']) { List<Item> qi = order.order.where((p) { return (p.category)!.contains(cat); }).toList(); items.addAll(qi); } if (items.isNotEmpty) { final PosPrintResult res = await printer.connect(printerrr['ip'], port: 9100); if (res == PosPrintResult.success) { // DEMO RECEIPT final image = await generateBillForKit(items); await testReceipt(printer, image); printer.disconnect(); } } } }
} `
on android its a cake , but on the windows its not
flutter doctor : no issues found
The text was updated successfully, but these errors were encountered:
Hey @Adamsaeed-00,
I'm facing the same issue. Did you able to find any solution yet for windows?
Sorry, something went wrong.
Hey @sabikrahat sorry for late reply , will you must reduce the print 64 bytes
No branches or pull requests
hi , I am using the package but I want to network print on windows , the code :
`
Future printReceipt(
RestaurantDataProvider resProvider,
PrintersProvider printersProvider,
Order order,
UserProvider userPrvider,
paid,
returnvalue) async {
const PaperSize paper = PaperSize.mm80;
final profile = await CapabilityProfile.load();
final printer = NetworkPrinter(paper, profile);
}
`
on android its a cake , but on the windows its not
flutter doctor : no issues found
The text was updated successfully, but these errors were encountered: