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

iphone pro update #304

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

masanggil1986
Copy link

choosing camera in order TrueDepth > DualCamera > WideAngle

this is resolving #297

@TheSin-
Copy link

TheSin- commented Oct 30, 2023

Please add this, I haven't tested it but trying to write an app using this plugin and I couldn't figure out why it won't focus at all. I'm on a Pro model.

@TheSin-
Copy link

TheSin- commented Oct 30, 2023

Odd I'm pretty sure I added this (seems the Files Changed isn't showing all the changes), Had to go through the commits to find more changes. But I'm still not getting any focus to happen :(

NVM, I see it was added and then removed. Files Changed is correct, but still not getting auto focus :(

@TheSin-
Copy link

TheSin- commented Oct 30, 2023

Got it working but I had to add what you had with a little tweak to get the right sense to get proper auto focus

let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTripleCamera, .builtInDualWideCamera, .builtInWideAngleCamera], mediaType: AVMediaType.video, position: .back)

and to make this happen you need to add

s.ios.deployment_target = '13.0'

to the flutter_barcode_scanner.podspec file

Thanks for this, I really needed focusing.

@AlexLX2
Copy link

AlexLX2 commented Nov 24, 2023

Got it working but I had to add what you had with a little tweak to get the right sense to get proper auto focus

let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTripleCamera, .builtInDualWideCamera, .builtInWideAngleCamera], mediaType: AVMediaType.video, position: .back)

and to make this happen you need to add

s.ios.deployment_target = '13.0'

to the flutter_barcode_scanner.podspec file

Thanks for this, I really needed focusing.

I'm sorry, I'm new to flutter.
@TheSin- where should I put this line:

let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTripleCamera, .builtInDualWideCamera, .builtInWideAngleCamera], mediaType: AVMediaType.video, position: .back)

@TheSin-
Copy link

TheSin- commented Nov 24, 2023

@AlexLX2 do you know how to move a plugin to be local to the project?

Cause you'll have to do that first to add mods to it. But those lines all go into the plugin isn't self, they just don't work until you move it to be local.

I used this to learn how https://stackoverflow.com/questions/47296617/how-to-modify-plugins-dart-code-flutter

Hope this helps you. I really wish this would get accepted as it really is required.

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

Successfully merging this pull request may close these issues.

3 participants