flutter_scalable_ocr icon indicating copy to clipboard operation
flutter_scalable_ocr copied to clipboard

can we turn on flash / torch camera ?

Open yogithesymbian opened this issue 2 years ago • 3 comments
trafficstars

i only read readme.md and not install yet. but i looking for first information, want to know..., this package support for torch / flash ? and how about other device ( ios ) also can be working ? thankyou ...

yogithesymbian avatar May 26 '23 10:05 yogithesymbian

Hi, it works on iOS and Android, the torch is not implemented through this package, but you can add torch on/off on the screen where you're using this package. But good idea, I will implement it when I upgrade everything to 3.10 :)

vbalagovic avatar May 26 '23 10:05 vbalagovic

Thanks for your feedback! I'm glad to hear that the package works on both iOS and Android. Adding the torch on/off functionality sounds like a great idea, especially for enhancing user experience. Looking forward to the upgrade to version 3.10 and seeing the new features. Keep up the good work!

yogithesymbian avatar May 26 '23 10:05 yogithesymbian

which package ? ( i use dart 2.17 )

torch [EnableTorchExistentUserException: There is an existent camera user, cannot enable torch: android.hardware.camera2.CameraAccessException: CAMERA_IN_USE (4): setTorchMode:2065: Torch for camera "0" is not available due to an existing camera user]

i have tried with torch_light: ^1.0.0 but it cannot be use on camera position is ready, still looking for toggleFlash like on qr_scanner ,,,

yogithesymbian avatar Jul 05 '23 13:07 yogithesymbian

torch support added

vbalagovic avatar Oct 30 '24 19:10 vbalagovic