Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mirrorFrontCamera:true and Sensor.position(SensorPosition.back) ,turn iPhone left or right ,preview screen is reverse #535

Open
NicofnCHINA opened this issue Nov 28, 2024 · 2 comments

Comments

@NicofnCHINA
Copy link

Steps to Reproduce

mirrorFrontCamera:true and Sensor.position(SensorPosition.back) ,turn iPhone left or right ,preview screen is reverse

iOS is Error ,Android is ok

@runoob-coder
Copy link

QQ_1732999881063

I reviewed the source code and found that the mirrorFrontCamera parameter is not being used. Therefore, setting the mirrorFrontCamera parameter has no effect.

QQ_1733000521517

According to the documentation, the setMirrorFrontCamera method can be called through the state to set the front camera mirror. However, I cannot find how to call the setMirrorFrontCamera method!

QQ20241201-050044

Then I reviewed the source code regarding the implementation of setMirrorFrontCamera, and now I know how to call this method.

QQ_1733000756493

First, you need to import the package:

import 'package:camerawesome/pigeon.dart';

Then you can call the method:

// Assuming you have a reference to the state object
CameraInterface().setMirrorFrontCamera(false);

QQ20241201-050905

It works on my iPhone, I hope this can be helpful to you!

@ProgUser145
Copy link

Did you find any solution? Also having this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants