fluttercommunity / fluttercommunity/chewie

Material controls, easy fix to correct the margin of controls when hide the fs button

Open
#136 0 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

Hi, thanks for the plugin!
I see that you have added a way to avoid the fullscreen button, which is great for me.
There is only one small detail in android, when the fullscreen button is not shown, the sound button remains with the margin very close to the right edge, it is just an aesthetic detail.

This can be solved by replacing this part of the code in material_controls.dart (line 109).

```
chewieController.allowFullScreen
? _buildExpandButton()
: Container(margin: EdgeInsets.only(right: 12.0),), // add the margin
```

In this way we add the right margin that is lost by removing the fullscreen button.

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.