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

fix display size while Chewie wrapped by some rotate widget #777

Merged
merged 1 commit into from Nov 28, 2023

Conversation

bailyzheng
Copy link

When Chewie wrapped by RotatedBox like this. It is used in the situation that device not support landscape and portrait switch.

RotatedBox(quarterTurns: 1,
                      child: Chewie(
                        controller: _chewieController!,
                      ))

It will not occupy all the space.
S1

Use LayoutBuilder instead of MediaQuery is more adaptive. It looks like this now.
s2

@diegotori
Copy link
Collaborator

LGTM. Will try out your changes either tonight or tomorrow night.

@diegotori
Copy link
Collaborator

@bailyzheng sorry for the delay. Will get a chance to run it on my end first thing tomorrow.

@diegotori diegotori merged commit 443d761 into fluttercommunity:master Nov 28, 2023
diegotori added a commit that referenced this pull request Nov 28, 2023
lg8294 added a commit to lg8294/chewie that referenced this pull request Dec 6, 2023
* master:
  chewie, version 1.7.4. Addresses fluttercommunity#757.
  chewie, version 1.7.3. Addresses fluttercommunity#777.
  Added comments and optimised code
  fix display size while Chewie wrapped by some rotate widget
  Lint issue Fixed
  Revert "Update cupertino_controls.dart"
  Update cupertino_controls.dart
  Fixed : Playback speed reset on forwarding video

# Conflicts:
#	lib/src/player_with_controls.dart
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

Successfully merging this pull request may close these issues.

None yet

2 participants