edge_detection icon indicating copy to clipboard operation
edge_detection copied to clipboard

Flash button not showing on some devices

Open rsanjuan87 opened this issue 2 years ago • 17 comments

Is there a way to turn on the flash when scanning to get better results?

rsanjuan87 avatar Feb 10 '23 22:02 rsanjuan87

the same question

hieudc110501 avatar Mar 06 '23 04:03 hieudc110501

@rsanjuan87 are these flash button not working for you?

ios - image

android - image

sawankumarbundelkhandi avatar Mar 06 '23 09:03 sawankumarbundelkhandi

Thanks, but why i can't see flash button in my android device ? @sawankumarbundelkhandi

image

hieudc110501 avatar Mar 06 '23 09:03 hieudc110501

Nothing here either https://user-images.githubusercontent.com/25087943/223077814-cfd58827-c49d-4aff-8ae9-c5cecd2fd92d.jpg

rsanjuan87 avatar Mar 06 '23 09:03 rsanjuan87

Nothing here either Screenshot_2023-03-06-10-57-58-170_com.contappdigital.scanner.dev_fl.jpg

The same me

hieudc110501 avatar Mar 06 '23 10:03 hieudc110501

I solved this problem. Change a bit in android/src/main/kotlin/com/sample/edgedetection/scan/ScanActivity.kt image

hieudc110501 avatar Mar 13 '23 02:03 hieudc110501

sorry but, what have you changed?

rsanjuan87 avatar Mar 19 '23 22:03 rsanjuan87

@rsanjuan87 set flash.visibility = View.VISIBLE

hieudc110501 avatar Mar 20 '23 01:03 hieudc110501

@hieudc110501 can you do a PR of your fix?

sawankumarbundelkhandi avatar Jun 29 '23 18:06 sawankumarbundelkhandi

Hi, I can't try this fix because I can't access the native code of the edge_detection package, can you help?

githuseyingur avatar Oct 16 '23 13:10 githuseyingur

Hey, I have the same problem @githuseyingur, the android/src/main/kotlin/com/sample/edgedetection/scan/ScanActivity.kt directory is not present in my code. How can I access the source code of the edge_detection package? pub dev: https://pub.dev/packages/edge_detection

muhammedhosgor avatar Oct 16 '23 13:10 muhammedhosgor

@muhammedhosgor here is the file - https://github.com/sawankumarbundelkhandi/edge_detection/blob/master/android/src/main/kotlin/com/sample/edgedetection/scan/ScanActivity.kt.

You can fork the project and change the code and then use that fork in your flutter project.

sawankumarbundelkhandi avatar Oct 17 '23 17:10 sawankumarbundelkhandi

@sawankumarbundelkhandi Oh, it seems to be fixed in the new update(version 1.1.3). Thank you very much. <3

githuseyingur avatar Oct 18 '23 07:10 githuseyingur

@sawankumarbundelkhandi It works fine after the update. Thank you very much for a successful package :)

muhammedhosgor avatar Oct 18 '23 10:10 muhammedhosgor

@rsanjuan87 @hieudc110501 can you please also check and confirm? I will close the issue then.

sawankumarbundelkhandi avatar Oct 19 '23 11:10 sawankumarbundelkhandi

still flash option is not working any fix ?

anilkumar416 avatar Aug 05 '24 09:08 anilkumar416

@sawankumarbundelkhandi is issue still not resolved

anilkumar416 avatar Aug 05 '24 11:08 anilkumar416