bytepark / auto_orientation

A flutter plugin to programmatically change the orientation and rotate
MIT License
46 stars 47 forks source link

[Android] landscapeRightMode rotates the screen twice times #8

Closed fantasy525 closed 2 years ago

fantasy525 commented 5 years ago
  auto_orientation: ^1.0.5
  flutter:1.7.8-hotfix4
  1. invokeawait AutoOrientation.landscapeRightMode(); 2.screen rotates twice times. I found that I comments out this line of code,it can work ok.
    static landscapeRightMode() async {
    // delete below line
    // SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeRight]);
    try {
      await _channel.invokeMethod('setLandscapeRight');
    } on MissingPluginException catch (_) {
      return;
    }
    }
sfaujour commented 4 years ago

Thanks for the issue - which phone / os are you using?

anjanjanj commented 4 years ago

same issue here - OnePlus 7T

ashemetov commented 3 years ago

Any chance to fix? Samsung S21 has the same issue.

KasunSKarunasekara commented 3 years ago

Having the same issue on Nokia 6.1 plus? Will this be fixed?

rahul-insight commented 3 years ago

Having the same issue on iOS. Will it be fixed?

fbatschi commented 2 years ago

This should be fixed by 31ec48b6ea331fb802996aa29e73b01e93ddc611 will be published soon as new package