jhoogstraat / fast_barcode_scanner

A flutter plugin that allows your users to scan any type of barcode on iOS and Android
41 stars 53 forks source link

Optional CutOut Position for Material Finder #59

Open toufeeqahamedns opened 2 years ago

toufeeqahamedns commented 2 years ago

Hey liked the performance of the plugin.

Have added optional param to set CutOut Center, Height and Width.

This would help in positioning the CutOut any where on the screen and size the cutout with any width and height

Also, I have added assertions so that the CutOut won't overflow to the sides.

Hope this gets merged

dustin-graham commented 2 years ago

@toufeeqahamedns , One thing I just learned yesterday about scanning on iOS is that if you configure the scanner to detect both 2D and 1D codes (like QR and Code128), it will only detect the 1D code when it is in the center of the screen. This is a peculiarity of AVFoundation on iOS, not this plugin specifically. So if you move the rect away from the center and you configure both 2D and 1D codes, your 1D codes will not be detected inside the rect.

jhoogstraat commented 1 year ago

Is this PR still something to be merged for v2? There are conflict currently and I am unsure at which state I left off.