I set the videoplayer aspect ratio as same as the video playing.. Playing fine while working with landscape videos but not for mobile phone's recorded portrait videos..
showing overflowing error.. how to resolve this. Please help
ERROR:
The following assertion was thrown during layout:
A RenderFlex overflowed by 9.4 pixels on the right.
The relevant error-causing widget was:
Chewie
package:x/video.dart:69
The overflowing RenderFlex has an orientation of Axis.horizontal.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.
Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the
RenderFlex to fit within the available space instead of being sized to their natural size.
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#99aae relayoutBoundary=up9 OVERFLOWING:
needs compositing
creator: Row ← ColoredBox ← ConstrainedBox ← Container ← FadeTransition ←AnimatedOpacity ← Column ←
AbsorbPointer ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← ⋯
parentData: (can use size)
constraints: BoxConstraints(0.0<=w<=268.6, h=48.0)
size: Size(268.6, 48.0)
direction: horizontal
mainAxisAlignment: start
mainAxisSize: max
crossAxisAlignment: center
textDirection: ltr
verticalDirection: down
I set the videoplayer aspect ratio as same as the video playing.. Playing fine while working with landscape videos but not for mobile phone's recorded portrait videos.. showing overflowing error.. how to resolve this. Please help
ERROR: The following assertion was thrown during layout: A RenderFlex overflowed by 9.4 pixels on the right. The relevant error-causing widget was: Chewie package:x/video.dart:69 The overflowing RenderFlex has an orientation of Axis.horizontal. The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex. Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size. 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#99aae relayoutBoundary=up9 OVERFLOWING: needs compositing creator: Row ← ColoredBox ← ConstrainedBox ← Container ← FadeTransition ← AnimatedOpacity ← Column ← AbsorbPointer ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← ⋯ parentData: (can use size)
constraints: BoxConstraints(0.0<=w<=268.6, h=48.0)
size: Size(268.6, 48.0)
direction: horizontal
mainAxisAlignment: start
mainAxisSize: max
crossAxisAlignment: center
textDirection: ltr
verticalDirection: down