mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 463 forks source link

Localize the Flash On/Off button would be better #91

Closed learning closed 4 years ago

learning commented 5 years ago

The Flash On/Off button text is hard coded now, localize it would be better.

https://github.com/apptreesoftware/flutter_barcode_reader/blob/5d498e39a76466b03579486475ec777fba33ed2c/android/src/main/kotlin/com/apptreesoftware/barcodescan/BarcodeScannerActivity.kt#L39

https://github.com/apptreesoftware/flutter_barcode_reader/blob/5d498e39a76466b03579486475ec777fba33ed2c/android/src/main/kotlin/com/apptreesoftware/barcodescan/BarcodeScannerActivity.kt#L43

https://github.com/apptreesoftware/flutter_barcode_reader/blob/5e360fc9dad8f3525e75aaaf6e7d64490759eda2/ios/Classes/BarcodeScannerViewController.m#L93

https://github.com/apptreesoftware/flutter_barcode_reader/blob/5e360fc9dad8f3525e75aaaf6e7d64490759eda2/ios/Classes/BarcodeScannerViewController.m#L97

angel1st commented 5 years ago

+1 on the above. I would even suggest an easier IMO approach - rather than localize the button, it can be replaced with icon pair Flash on / off.

gabrieleleo commented 5 years ago

would be really awesome!!

linguitang commented 5 years ago

+1

hehuapei commented 5 years ago

+1

josephyuen commented 5 years ago

+1

hanlike commented 5 years ago

+1

masewo commented 5 years ago

+1 on the above. I would even suggest an easier IMO approach - rather than localize the button, it can be replaced with icon pair Flash on / off.

I replaced flash toggle title by two icons in my fork.

devtronic commented 4 years ago

As mentioned here https://github.com/mintware-de/flutter_barcode_reader/issues/131#issuecomment-588521486 I need to rewrite the platform communication. After that it's possible to use custom strings.

devtronic commented 4 years ago

Soon :-) image

devtronic commented 4 years ago

Feel free to test: https://github.com/mintware-de/flutter_barcode_reader/pull/185

devtronic commented 4 years ago

https://pub.dev/packages/barcode_scan/versions/3.0.0-dev.1