You can try using this package. It makes connecting to a Bluetooth thermal printer very simle.
x_printer (For both Android and iOS)