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

AwesomeOrientedWidget not rotating initially #443

Open lthoedt opened 4 months ago

lthoedt commented 4 months ago

Steps to Reproduce

Describe how to reproduce the error Add an AwesomeOrientedWidget after you have rotated from the original position. It wont rotate to that rotation, it will only do so if you rotate back and back again.

Expected results

It should rotate to the correct rotation after being rendered. Not only on rotation events.

What it should be It should rotate to the correct rotation after being rendered. Not only on rotation events.

Actual results

Doesnt rotate

What you see No rotation.

I looked into the source code and it seems that CamerawesomePlugin.getNativeOrientation() has no data when loading in. It will only get data after a rotation event.