Flutter Bluetooth thermal POS printer - flutter

Is there any way that I can print a receipt on a Bluetooth thermal printer, as I really struggling finding the solution on flutter? Anything could help, I really appreciate those answers

I have tried esc_pos_bluetooth package and it's not working for Bixolon bluetooth printer.
I'v found blue_thermal_printer library and it worked for me on Android but this library doesn't support iOS until now:
https://pub.dev/packages/blue_thermal_printer

Currently you need to write your own logic using Bluetooth packages.
There is package available which currently supports WiFi POS printer.
Take a look
https://pub.flutter-io.cn/packages/esc_pos_printer

Have you tried this package: esc_pos_bluetooth(https://github.com/andrey-ushakov/esc_pos_bluetooth)?

Not much luck on my end either (on ios). Unfortunately, esc_pos_bluetooth doesn't detect my Epson TM-T88VI so that's a little bit of a road block...

There are three major bluetooth printing plugins, i have tried them all and so far this package is the best one esc_pos_bluetooth is the best on my case.

Some useful Flutter SDKs for Thermal Printer:
bluetooth_thermal_printer - This is a Flutter plugin that allows you to use a Bluetooth thermal printer on Android device.
blue_print_pos - This is a Flutter plugin that enables you to use a
POS (point of sale) system on both Android and iOS device.
This is the updated forked blue_print_pos SDK which I used in Dec, 2022. You can use it without facing any issues.
How to integrate SDK: Detailed Stackoverflow Answer

Related

Is there any plugin available for Flutter Bluetooth serial communication for IOS and Android

I am new to flutter.
I came across flutter_bluetooth_serial it works only for android ..please suggest
One suggestion could be to use Android ;-) Howsoever, flutter_bluetooth_serial implementation uses Classical Bluetooth and here we enter the land of Apples MFI (Made for iPhone/iPod/iPad) licensing programme . This is the reason for the lack of support in libraries like flutter.
I suggest using another interface with fewer restrictions, for example Bluetooth LE.

Can we use a Bluetooth thermal printer using flutter_blue package

I am developing a flutter mobile app , I need to implement a Bluetooth thermal printer, So I have added flutter_blue package, and using esc_pos_utils 1.0.0 for generating byte code but I am not getting way how can I use byte code with flutter_blue package, I have used esc_pos_bluetooth, but problem is, it not detecting device in some mobile, If flutter_bluetooth_serial: ^0.2.2 can use for that will also use cause flutter_blue and flutter_bluetooth_serial are working well for detecting device in almost every mobile.
Also I have used bluetooth_print , it working better then esc_pos_bluetooth in detecting mobile device but it is using LineText widget which not good for generating receipt,
Please help me out

Can we create Wifi hotspot in flutter?

I have an app for connection IoT devices. So when I open the app, my wifi hotspot must be automatically enabled. Can anyone suggest a way to this?
The wifi_iot package is probably the best you can get with Flutter for now. Their page on pub.dev specifically states what is possible right now.
wifi_iot will generate hotspot with random ssid li

Flutter Printing over WIFI

I am developing an app for school project using flutter and it should have a feature of printing a PDF document over WI-Fi (using WI-FI printers).
I didn't find any tutorials on printing using flutter so I want to know if flutter supports such thing and if not, is there a way around it?
Thanks in advance
It looks like there is a printing package available for flutter here that might be what you need:
https://pub.dev/packages/printing
They even have example code that you can use:
https://pub.dev/packages/printing#-example-tab-

Is there a way to access or control raspberry pi GPIO pins using flutter app running on android things?

I am trying to build a project based on IoT with flutter, android things, and raspberry pi. For that, I need to access raspberry pi GPIO pins through my flutter app.
Firstly I have installed android things os onto the raspberry pi and connect a display to it. After that, I have to build a flutter app and uploaded and it's working perfectly but now I need to control GPIO so I have googled it but found nothing except the rpi_gpio dart library which can access raspberry pi GPIO pins but apparently it is not working on flutter dependencies.
So is there a way then suggest me so that I can complete my project.
I know that this posting is a bit old, but another option might be to use the pigpio library. It has a feature that pushes the entire API out to a network connection (this feature is called "pigs").
I struggled trying to use FFI to interface with the C-based pigpio library on a Pi Zero W. Then I was reminded that Dart support for the older, less powerful devices had been dropped from Dart, so I was stuck with no graceful solution until I tried out pigs. The pigs interface completely removed the headaches associated with either FFI on Dart or JNI in Java and just made it a happy Socket interface over the network. I was doing an I2C interface to a temperature/humidity sensor. Pigs should also make a browser-based Flutter app happy as long as you deal properly with the single origin requirements.
Here's a link to pigs on pigpio
I've recently seen a Dart library for the Raspi's GPIOs. As Dart is the underlying language of Flutter, shouldn't you be able to then use the pins by importing this library?
https://pub.dev/packages/rpi_gpio
As far as I know there is no plugin for Flutter to interact with Peripheral IO. Given Flutter's nature of targeting multiplatform and Android Things being very specific, I do not think something like that will exist.
Most IoT applications have quite simple logic, so it should be reasonable easy to write the UI on Android directly (given you are not planning to release in any other platform anyway.
Your other option would be to create a Flutter plugin for GPIO and port it only to Android, but IMHO it will be harder to do than just code the UI of the app directly on Android.
There is now another FFI-based gpio on RPI Dart package called gpiod.
Its use is described in this article on running Flutter on a RPI based device.