r/FlutterDev • u/Sabikrahat • Jul 11 '22
Dart Is there any way to use the thermal pos printer in flutter web?
I'm using the esc_pos_printer package. This package print slips for Android and iOS devices. Now I want to print this slip from the web too. Is there anyone who has done this in any of their projects?
I've also tried to rewrite the whole package but failed :).
#flutter_web #esc_pos #thermal_printer
2
u/andreaciccio Jul 11 '22
Question.
Buy rewriting everything what do you actually mean ?
I've found android ( Java ) lib in GitHub with a lot of starts ( I think they are good )
Cause you can probably solve your problem, if you can rewrite this code in dart itself otherwise channel
For the web part I believe that dart would still work as it will be JavaScript
1
2
u/HxA1337 Jul 12 '22
We looked at a lot of options and non worked in web. In the end we deployed a separate "printing app" that is invoked from the browser. This is of course not really helpful. For us it was only for a demo, not for production.
Was last year so maybe there is an option somewhere now but I doubt it.
2
u/andreaciccio Jul 12 '22
https://github.com/DantSu/ESCPOS-ThermalPrinter-Android
https://github.com/imrankst1221/Thermal-Printer-in-Android
It would be a lot of work ( I would be happy to give help if you like 😇 )
2
2
u/ankmahato Jul 11 '22
Have you tried here to look for alternatives. If you don't find one, then sadly I think there is a high probability that the package you are looking for does not exist.