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

v2.3.0 iOS15 has flushed back. #32

Open
yisar opened this issue Apr 28, 2023 · 5 comments
Open

v2.3.0 iOS15 has flushed back. #32

yisar opened this issue Apr 28, 2023 · 5 comments

Comments

@yisar
Copy link

yisar commented Apr 28, 2023

the new version does not work well at ios15

    try {
      SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);
      AutoOrientation.landscapeRightMode();
    } catch (e) {
      showErrorSnackBar(e.toString());
    }
@fbatschi
Copy link
Contributor

can confirm. for now stay with 2.2.1 if you support ios15.

@yisar
Copy link
Author

yisar commented Apr 28, 2023

But I need to support both iOS 15 and 16,16, which is more important, but currently the error of 15 is destructive.
Is there a way to use both versions simultaneously.

@BlackLeg15
Copy link

I mean, I may be wrong but this code's always going to throw, right?
Because of this guy 👇
image

@yisar
Copy link
Author

yisar commented Apr 28, 2023

I mean, I may be wrong but this code's always going to throw, right?
Because of this guy 👇

Please test iOS15 and the latest version of flutter, at present, not only iOS15 is destructive, iOS16 still has a method that has no effect, I have to write my own native plugin to do landscape screen, I don't think there is any difficulty here, just insufficient testing.

@fbatschi
Copy link
Contributor

@yisar you are free to fork, write your own code, submit pull requests or do whatever you want.

There was a rawValue call missing in the legacy code of UIDevice.current.setValue.
Fix has been pushed to master, so feel free to use that. A new package will be published shortly.

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