andriyoganp / blue_print_pos

Helper to use bluetooth print in Android and iOS
Apache License 2.0
34 stars 78 forks source link

[Suggestion] Remove dependency on blue_thermal_printer #69

Open theGowda opened 2 years ago

theGowda commented 2 years ago

First of all, thank you for your work!

Doesn't flutter_blue_plus handle both android and ios bluetooth? Is there a specific reason you are using blue_thermal_printer for handling android bluetooth? I tried removing all the Platform checks and used only flutter_blue_plus. Worked fine! The blue_thermal_printer only shows devices that are already paired. Flutter_blue_plus doesn't need you to pair the device first.

I'm asking this because i'm using your package to work with different models. So I want to know are there any printer models that don't work with flutter_blue_plus.

nasibudesign commented 2 years ago

what I've found is that in android other printers with "Flutter_blue_plus" printing image can be too slow, also some Pos come with an integrated virtual Bluetooth printer which may not be picked by "Flutter_blue_plus".

theGowda commented 2 years ago

what I've found is that in android other printers with "Flutter_blue_plus" printing image can be too slow, also some Pos come with an integrated virtual Bluetooth printer which may not be picked by "Flutter_blue_plus".

now that you said this I tested the ReceiptSectionText() class to addText. Earlier I was just accessing the esc_pos class to add text and I encountered the problem with flutter blue on android. It did not print anything. This could be a problem of the esc_pos printing image. Everything in the ReceiptSectionText is converted to image and then printed.

Thank you the detail. i'll investigate further