abdelaziz-mahdy / flutter_meedu_videoplayer

Cross-Platform Video Player for flutter
https://abdelaziz-mahdy.github.io/flutter_meedu_videoplayer/
MIT License
132 stars 69 forks source link

overflow on ios simulator #96

Closed Carseason closed 1 year ago

Carseason commented 1 year ago
image
This is considered an error condition because it indicates that there is content that cannot be
seen. If the content is legitimately bigger than the available space, consider clipping it with a
ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex,
like a ListView.
The specific RenderFlex in question is: RenderFlex#037af relayoutBoundary=up10 OVERFLOWING:
  creator: Row ← Column ← Positioned ← SecondaryBottomControls ← Stack ← IgnorePointer ← Stack ←
    Padding ← DecoratedBox ← Container ← AnimatedContainer ← FadeTransition ← ⋯
  parentData: offset=Offset(0.0, 3.0); flex=null; fit=null (can use size)
  constraints: BoxConstraints(0.0<=w<=430.0, 0.0<=h<=Infinity)
  size: Size(430.0, 76.0)
  direction: horizontal
  mainAxisAlignment: spaceBetween
  mainAxisSize: max
  crossAxisAlignment: center
  textDirection: ltr
  verticalDirection: down
Carseason commented 1 year ago

Is it possible to change the icon size of the control bar?

Carseason commented 1 year ago

It will appear when the player fills the page, maybe it is the reason for the rounded corners of the screen?

abdelaziz-mahdy commented 1 year ago

It will appear when the player fills the page, maybe it is the reason for the rounded corners of the screen?

It's just that's the screen width is not wide enough you can try changing the icons size a bit for a fix

abdelaziz-mahdy commented 1 year ago

Is it possible to change the icon size of the control bar?

There is an example were you can see how to change icons size

Carseason commented 1 year ago

It will appear when the player fills the page, maybe it is the reason for the rounded corners of the screen?

It's just that's the screen width is not wide enough you can try changing the icons size a bit for a fix

Sorry, I'm a flutter noob, how can I change the icon size?

abdelaziz-mahdy commented 1 year ago

final _meeduPlayerController = MeeduPlayerController( controlsStyle: ControlsStyle.primary, responsive: Responsive( fontSizeRelativeToScreen: 2.5, maxFontSize: 16, iconsSizeRelativeToScreen: 10, maxIconsSize: 100, buttonsSizeRelativeToScreen: 10, maxButtonsSize: 100, ));

This will change the icons in relation to screen size

Carseason commented 1 year ago

perfectly solved my problem