Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
919 stars 207 forks source link

iOS aspect ratio is not working as expected #224

Closed migalv closed 1 year ago

migalv commented 1 year ago

Steps to Reproduce

  1. Add camerawesome: ^1.2.0 as a dependency
  2. Use the CameraAwesomeBuilder.awesome builder method.
  3. Change between aspect ratios

Expected results

The camera uses the 4:3 camera aspect ratio. Like in the native camera app.

Actual results

The camera preview is "cut" instead of using the full aspect ratio.

Here is an example of the native camera VS the CamerAwesome
Native iOS camera CamerAwesome
Native iOS camera CamerAwesome

As you can see, without moving the phone, when using CamerAwesome the camera preview does not contain the same information as the Native camera. Leaving information lost in the process...

When changing from 4:3 to 16:9 you can see that the only thing that happens is that the camera cuts some parts of the preview instead of actually changing the aspect ratios.

Here is a clearer example of what I mean
Native iOS camera CamerAwesome

BTW this does not happen in Android

About your device

Brand Model OS
Apple iPhone XR 15.5