Skip to content

iphone pro update - #304

Open
masanggil1986 wants to merge 3 commits into
AmolGangadhare:masterfrom
masanggil1986:master
Open

iphone pro update#304
masanggil1986 wants to merge 3 commits into
AmolGangadhare:masterfrom
masanggil1986:master

Conversation

@masanggil1986

Copy link
Copy Markdown

choosing camera in order TrueDepth > DualCamera > WideAngle

this is resolving #297

@TheSin-

TheSin- commented Oct 30, 2023

Copy link
Copy Markdown

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-

TheSin- commented Oct 30, 2023

Copy link
Copy Markdown

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-

TheSin- commented Oct 30, 2023

Copy link
Copy Markdown

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

AlexLX2 commented Nov 24, 2023

Copy link
Copy Markdown

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-

TheSin- commented Nov 24, 2023

Copy link
Copy Markdown

@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