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

Landscape #419

Closed lthoedt closed 4 months ago

lthoedt commented 7 months ago

Proposal

I want to use this in landscape mode but it seems to be locked to portrait mode. Im working on a work around but im not sure that that is possible yet. Is there a reason for it not being supported?

g-apparence commented 6 months ago

Hi, CamerAwesome locks orientation to portrait mode as the sensor orientation on phones. There is another issue requesting to change the orientation on tablets. Is that what you want to achieve?

lthoedt commented 5 months ago

I want to rotate the phone to landscape and make the interface in portrait. However after overwriting the orientation, the camera view also rotates and now is rotated wrong.

g-apparence commented 5 months ago

Yes, that's why we locked the rotation.

If you want to create a landscape view you will have to draw your custom view and use the AwesomeRotateWidget to rotate your widgets. Basically, you have to make the same render as we made but instead of wrapping the elements within a Column you have to push them as a Row.

lthoedt commented 5 months ago

Right, that is what i did but its rather awkward. I cant seem to understand why the default camera package works but camerawesome behaves different.