BlinkID / blinkid-flutter

ID scanning plugins for cross-platform apps built with Flutter.
77 stars 23 forks source link

BlinkIdOverlaySettings missing parametar #65

Open Twwisty opened 2 weeks ago

Twwisty commented 2 weeks ago

I'm on version 6.7.0 and for BlinkIdOverlaySettings as i was trying to localize messages i realized that there's one parameter missing or maybe I'm not seeing it. There is parameter for firstSideInstructionsText but i can't find secondSideInstructionsText while scanning i can see the text in English but i can't localize only that one.

While DocumentVerificationOverlaySettings has both firstSideInstructions and secondSideInstructions.

Can someone help with this one?

mparadina commented 2 weeks ago

Hi @Twwisty

There is no direct string for the secondSideInstructionsText on the BlinkIdOverlaySettings overlay. The reason for this is that it depends on the document you are scanning, as the SDK automatically detects the document type during the first side scanning. For example, if you are scanning a US driver's license, then you would need to modify scanBarcodeText, as we only extract the barcode information from it. You can also modify various 'error' strings (move farther, close, etc.) which can occur during the backside scanning as well.

I hope this helps. Let me know if you have any additional questions.

Twwisty commented 2 weeks ago

I understand that but for my example where i am trying to scan Croatian/Serbian ID Card where scan detects there is no barcode to scan on back. By default it shows text in English (Scan the back side of document) and then that text can't be edited.

And if i input text for scanBarcodeText parameter it will just remove text for when scanning second side of ID Card.

It seems that on iOS it doesn't show any text for second side of scanning on mentioned ID Cards while Android shows text.

mparadina commented 2 weeks ago

Hi @Twwisty

Yes, you are correct. There is no backside text on iOS.

If it helps, we already have the SDK localized in Croatian. To change it, you just need to change the language property to 'hr'.

BlinkIdOverlaySettings settings = BlinkIdOverlaySettings();
settings.language = 'hr';

Have you maybe tried this already?

mparadina commented 1 week ago

Hi @Twwisty

Just wanted to make a follow-up here. Do you have any additional questions? Is it alright to close the issue?