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
947 stars 234 forks source link

Initial aspect ratio is being ignored #198

Closed Zazo032 closed 1 year ago

Zazo032 commented 1 year ago
CameraAwesomeBuilder.custom(
  aspectRatio: CameraAspectRatios.ratio_16_9,
  previewFit: CameraPreviewFit.contain,
  saveConfig: SaveConfig.photo(pathBuilder: () => photoPath),
  builder: (CameraState state, _, __) {
    // Custom UI
  },
),

The preview image is shown as 16:9, but after taking an image, the size is 960x720 (in emulator), so even if preview was 16:9, the resulting image is 4:3.

Zazo032 commented 1 year ago

This started happening after updating from ref 85ef2eeeed9a5846b0becdef76436911acea3c07 to ref b483fbc1d0bb476e3ec4826a9af7c994fd6ffe07 (also happens in 1.0.0+1)