arcticfox1919 / flutter-scankit

Flutter QR code scanning
MIT License
142 stars 46 forks source link

After upgrading to V2. #59

Open JacoFourie opened 8 months ago

JacoFourie commented 8 months ago

I now have a flash icon to switch the flash on and off with Chinese writing. How do I remove the text?

JacoFourie commented 8 months ago

I have now deployed my app to iOS and Android. The light Icon text is in English on Android but is Chinese on iOS. Can I recommend that you write all your comments etc., in English? English is also not my first language, but most people understand it.

arcticfox1919 commented 8 months ago

@JacoFourie Which mode are you using? If the scanKit?.startScan(); is used for scanning, it may not be possible to modify it because it is a page provided by the HUAWEI SDK, which is not open source. If you are customizing the view, then just modify it yourself.

But in default mode (i.e. using startScan()), the SDK displays the text based on the current system language, and if your phone's system language is set to English, it will display English on the UI as well.

JacoFourie commented 8 months ago

@arcticfox1919 I am using the default mode / sample. I am not building my own screen. My language is English

JacoFourie commented 8 months ago

With the previous version, the Chinese text was not there. So is the only way now to not show the flash icon and Chinese text to build my own screen?

arcticfox1919 commented 8 months ago

Could you provide a screenshot? I see that the flashlight display is in English on my end. I need to figure out where the problem lies. Of course, the quickest solution would be to customize the view.

JacoFourie commented 8 months ago

This was on the iPhone using version 1.24

image

And this is how it looks now on the iPhone using version 2

image

This is on Android now, using version 2

image

JacoFourie commented 8 months ago

I have now installed my app on 3 iPhones, and on all of them, it shows the Chinese text.

JacoFourie commented 8 months ago

I have now used the custom view. Just a note you are using some deprecated code in there.

The window call is deprecated.

arcticfox1919 commented 7 months ago

@JacoFourie The issue with this translation resource has been reported to Huawei. Now, we are waiting for the update of the Huawei SDK.