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
949 stars 240 forks source link

Aquire PhotoSizes from device and don't hardcode them #142

Closed SrTobi closed 1 year ago

SrTobi commented 2 years ago

Proposal

From what I saw in the iOS implementation, the photo sizes are hardcoded to the standard presets. Is there a particular reason why they are not queried from the device? Looks to me as if AVCaptureDevice.formats is what holds this information. Would be very useful.

istornz commented 1 year ago

Hi @SrTobi, formats are now directly fetched from the device.

Some value are hardcoded for the moment because we planed to change the system asap (we planned to use a generic enum for the quality instead of setting static resolution).