rishabnayak / firebase_livestream_ml_vision

Firebase MLVision Plugin with Live Camera
BSD 3-Clause "New" or "Revised" License
11 stars 14 forks source link

Camera Flipped in landscape mode (Android) #4

Open lunaticcoding opened 4 years ago

lunaticcoding commented 4 years ago

Using

await SystemChrome.setPreferredOrientations(
      [DeviceOrientation.landscapeRight]);
SystemChrome.setEnabledSystemUIOverlays([]);

in the main function to set the device rotation, rotates the camera into the wrong direction on android. Meaning the camera is always upside down with respect to the screen.

Please let me know if you need more details (we tried several different real devices and android versions). We didn't have any Iphones to test on so we don't know if this is an android only issue.