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

Camera preview "stretching" and "smashing" layout when changing aspect rations #470

Open eduardo-pellenz opened 1 month ago

eduardo-pellenz commented 1 month ago

Steps to Reproduce

Expected results

Don't try to render the previous preview on a different aspect radio.

I think the ideal should be either show a loading, or only update the UI when the aspect ratio change has finished.

Actual results

https://github.com/Apparence-io/CamerAwesome/assets/101573516/53e8d1d2-d51f-438b-a8b4-7483d38b9773

About your device

Brand Model OS
Xiaomi POCO X3 PRO 12

But it happens on all Androids that I've tested.

Your flutter version

Run this in your command line flutter --version

Flutter 3.16.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 41456452f2 (3 months ago) • 2024-01-25 10:06:23 -0800
Engine • revision f40e976bed
Tools • Dart 3.2.6 • DevTools 2.28.5