Connect Thermal printer and print using Flutter App
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuV0gmBV1sBaLPRQGBCO25FgvoeqAsV33bpz9nxaf2mD9aShyphenhyphen6jKfpkrW2Lvo8v4uwu8-DFVelVVDqt2TF4oEAIxWVe9fNpTeQrWPlmww4w92VVYDPMdYONlfKvN4ZEPNYJIR2bvnj3YvE/w286-h320/demo2.jpg)
Packages we will be using to connect and print through Thermal Printer using Flutter App bluetooth_thermal_printer to connect with Thermal Printer esc_pos_utils package to print receipts Image to print images Step 1 import 'package:bluetooth_thermal_printer/bluetooth_thermal_printer.dart' ; import 'package:esc_pos_utils/esc_pos_utils.dart' ; Step 2 Get your Thermal Printer mac address ready You can get it under bluetooth in your Phone or print a test page through printer. Call this Function Future< void > connectThermalPrinter (String mac) async { print(mac) ; result = await BluetoothThermalPrinter. connect (mac) ; if ( result == "true" ) { setState(() { connected = true; }) ; } }