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
910 stars 199 forks source link

previewAlignment not working #420

Closed michaelgaultjr closed 6 months ago

michaelgaultjr commented 6 months ago

Steps to Reproduce (version: 2.0.0+1)

Create a CameraAwesomeBuilder widget with CameraAwesomeBuilder.awesome, CameraAwesomeBuilder.custom, etc... and set the following fields in the widget constructor (as well as any other required fields)

previewAlignment: Alignment.center,
previewFit: CameraPreviewFit.contain,
sensorConfig: SensorConfig.single(
  sensor: Sensor.position(SensorPosition.back),
  aspectRatio: CameraAspectRatios.ratio_1_1,
),

Expected results

Camera preview should be centered with space above and below

Actual results

Camera preview is always on the top of the screen regardless of the value in the previewAlignment field

About your device

Brand Model OS
Apple iPhone 12 17.1.2

Your flutter version

Run this in your command line flutter --version

3.13.7-0.0.pre.1

g-apparence commented 6 months ago

Yes this has been reported last week. I should be able to fix this next week.

cooaer commented 6 months ago

Has the issue been fixed?

romain-pattyn commented 6 months ago

Is someone working on this issue currently?

KnifeLemon commented 6 months ago

431 fixed

g-apparence commented 6 months ago

Thanks for your help @KnifeLemon 🙏🏻

431 Fixed this