FlutterBluetoothPrinter.selectDevice(context) is perfect to choose device, no need to rewrite it.
But is hard coded localized in English, and since it has only few texts in it i suggest to pass then m as optional parameters, i.e.:
FlutterBluetoothPrinter.selectDevice(
context,
title='Choose a device',
disabled='Bluetooth is disabled',
permit='Bluetooth is not permitted',
unknown='(unknown)',
);
P.S.: I really appreciate flutter_bluetooth_printer_plugin. I wrote a reporting system for ESC/POS and I use it to write to the printer. See https://github.com/claudiodriussi/dot_report
FlutterBluetoothPrinter.selectDevice(context)
is perfect to choose device, no need to rewrite it.But is hard coded localized in English, and since it has only few texts in it i suggest to pass then m as optional parameters, i.e.:
P.S.: I really appreciate flutter_bluetooth_printer_plugin. I wrote a reporting system for ESC/POS and I use it to write to the printer. See https://github.com/claudiodriussi/dot_report