Reputation: 133
Due to flutter web exported javascript, we can't print the current web page information. In the print preview we have blank page, this is not the case with all others website.
My question is simple, is there any way we can get current screen printed with a bluetooth printer or wired using flutter web?
The only thing i found was using a package named printing and i need to rebuild all my page into pdf.
https://pub.dev/packages/printing
Upvotes: 3
Views: 5521
Reputation: 106
the most simple way is to try this
html.window.print();
this will help you trigger flutter print so you need to make a method that connects to a stream (example firebase stream using FCM) then call the method on value changed
Upvotes: 0
Reputation: 106
I have tried this ai_blue_tooth_print - https://pub.dev/packages/ai_blue_tooth_print. It is able to print the flutter web screen straight to the printer. However, this package is not "null safe".
Upvotes: 1