fluttercommunity / fluttercommunity/chewie

How to change the size of Chewie?

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

Description

Chewie return PlayerWithControls in build, but in PlayerWithControls,
I found it returns a SizedBox with screen height and screen width
i want to change the size to wrap with the video player, how to change the size of it?

```
return Center(
child: SizedBox(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: AspectRatio(
aspectRatio: calculateAspectRatio(context),
child: buildPlayerWithControls(chewieController, context),
),
),
);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.