month_picker_dialog icon indicating copy to clipboard operation
month_picker_dialog copied to clipboard

Overflow by 11 pixels when the year is selected

Open jiazeh opened this issue 4 years ago • 1 comments

When I set the code as follows:

showMonthPicker(
            context: context,
            ...
            locale: const Locale.fromSubtags(
                languageCode: 'zh', scriptCode: 'Hant'))

Then after selecting the year, there was an error of overflowing 11 pixels.

Screenshot from 2020-12-01 15-07-43

My env.. month_picker_dialog: 0.3.3 Flutter: 1.17.5

jiazeh avatar Dec 01 '20 07:12 jiazeh

I'm having the same problem. I'm using month_picker_dialog : 0.4.0. How do I change the size? Or can I "Expanded" it?

image

======== Exception caught by rendering library =====================================================
The following assertion was thrown during layout:
A RenderFlex overflowed by 62 pixels on the right.

The relevant error-causing widget was: 
  MaterialApp file:///~
: To inspect this widget in Flutter DevTools, visit: http://127.0.0.1:9101/#/inspector?uri=http%3A%2F%2F127.0.0.1%3A56698%2FM6kICdeIXYs%3D%2F&inspectorRef=inspector-0
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#289fa relayoutBoundary=up12 OVERFLOWING
...  parentData: offset=Offset(0.0, 25.0); flex=null; fit=null (can use size)
...  constraints: BoxConstraints(0.0<=w<=208.0, 0.0<=h<=Infinity)
...  size: Size(208.0, 48.0)
...  direction: horizontal
...  mainAxisAlignment: spaceBetween
...  mainAxisSize: max
...  crossAxisAlignment: center
...  textDirection: ltr
...  verticalDirection: down

motucraft avatar May 03 '21 12:05 motucraft