ekasetiawans / flutter_bluetooth_printer_plugin

MIT License
21 stars 36 forks source link

selectDevice localization #21

Open claudiodriussi opened 1 year ago

claudiodriussi commented 1 year ago

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