duytq94 / flutter-intro-slider

Simple and configurable app introduction slider for Flutter
https://pub.dartlang.org/packages/intro_slider
MIT License
677 stars 141 forks source link

RenderFlex overflow when there are allot of pages #80

Closed dupiesdupreez closed 4 years ago

dupiesdupreez commented 4 years ago

image

The relevant error-causing widget was IntroSlider lib\…\screens\intro.dart:137 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.

dupiesdupreez commented 4 years ago

I've remedied the problem by using the sizeDot property of the slider and making the dots smaller

AlaaMarawi commented 3 years ago

same problem ! but resizing the dots does not solve it.. it gives overflow error whenever dot number get bigger. Hope this will be solved soon :)