fluttercommunity / fluttercommunity/chewie

iOS orientation stays landscape after fullscreen

Open
#664 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

After entering and exiting fullscreen, the app stays in landscape orientation even though app was being held in portrait orientation the whole time. At this point, rotating the simulator to landscape and back to portrait brings the app back to portrait mode.

Expected behavior: When we exit fullscreen, whatever physical orientation that the simulator is in should be the orientation that the app adopts. At 00:07 in the video below, the app should appear in portrait mode, just like it was before going to full screen.

Forcing portrait is not a good option as the user could have actually turned the phone to landscape orientation and this video would be how it should be. However, in this video I keep it portrait throughout and it makes the app landscape unexpectedly.

I'm using the fullscreen button that Chewie shows, as seen in the video below. This is the example code in Chewie repo, with Flutter 3.0.3, Chewie 1.3.4 and iOS 15.2 simulator of iPhone 13 Pro Max.

https://user-images.githubusercontent.com/412997/187079020-7e95eda4-6eab-4a25-8800-02d6a5c3ea4a.mov

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Chewie example code and the fullscreen button flow described in the report, reproducing it on the iPhone 13 Pro Max iOS 15.2 simulator with Flutter 3.0.3 and Chewie 1.3.4. Check the behavior shown around 00:07 in the linked video; done means exiting fullscreen adopts the simulator's current physical orientation without requiring a landscape-to-portrait rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, ios
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.