Closed CikaTom closed 2 months ago
How did you get onMediaCaptureEvent already? It is not in the latest versino on pub dev, is it?
You can use master version, put this in your pubsbec
camerawesome:
git:
url: https://github.com/Apparence-io/CamerAwesome
Thanks i managed indeed :)
BTW I had the same issue like you. Hava a look at their example. You need to make sure to only filter out the MediaCaptureStatus.success
(line 54 in that example). The onMediaCaptureEvent
fires already at the capturing state (and then again after success).
That's a good catch. I missed it at that time. Thanks for a heads up ;)
Steps to Reproduce
Describe how to reproduce the error
Expected results
The expected behavior is a single navigation event to the PreviewScreen.
What it should be
Actual results
Contrary to expectations, the system navigates twice to the PreviewScreen, creating a duplicate instance.
About your device
Both Android and iOS
Your flutter version
Run this in your command line
flutter --version
Flutter 3.16.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision b0366e0a3f (3 months ago) • 2023-12-05 19:46:39 -0800 Engine • revision 54a7145303 Tools • Dart 3.2.3 • DevTools 2.28.4
Camera Screen
Preview Screen