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

Animation affect while taking photo #398

Closed slkmikhail closed 8 months ago

slkmikhail commented 8 months ago

Hi there!

I'd like to use camera shutter effect while taking photo.

I didn't find any API to make it. Theoretically, I can add the affect after catching MediaCaptureStatus.capturing. But I have the access to PreviewSize, Rect objects only in that place.

Is there any feature for that? if not, It might be great to see it as soon as possible.

Thanks!

g-apparence commented 8 months ago

You can now have access to the preview size etc directly from the builder now

CameraAwesomeBuilder.previewOnly(
  builder: (cameraModeState, preview) { // <- here
  },
)

(As this is the last work in progress for the 2.0.0 you can use it directly targetting the git repository for now).

slkmikhail commented 8 months ago

Thanks for your suggestion, I've already found a solution to animate sizeBox placed under camera preview based on previewRect' size.

g-apparence commented 8 months ago

Ok then I close this issue