Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we turn on flash / torch camera ? #5

Closed
yogithesymbian opened this issue May 26, 2023 · 4 comments
Closed

can we turn on flash / torch camera ? #5

yogithesymbian opened this issue May 26, 2023 · 4 comments

Comments

@yogithesymbian
Copy link

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 ...

@vbalagovic
Copy link
Owner

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 :)

@yogithesymbian
Copy link
Author

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
Copy link
Author

yogithesymbian commented Jul 5, 2023

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 ,,,

@vbalagovic
Copy link
Owner

torch support added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants