[障害対応]layout関連

1.事象

親ウィジェットから子ウィジェットを呼出表示する処理追加時に発生

2.発生場所: body: Colum (

3.エラーメッセージと見解

3-1. RenderFlex overflowed by 73 pixels on the bottom

※RenderFlexの下部が73ピクセルオーバーフローしました
-Columnウィジェットが与えられたスペースを超えて子ウィジェットを表示しようとした為に発生した
-(Columnウィジェット内の要素の合計高さが親ウィジェットの提供する高さを超えているという事)

Dart
Launching lib\main.dart on Windows in debug mode...
Built build\windows\x64\runner\Debug\reorderblelistview_11_22.exe
Connecting to VM Service at ws://127.0.0.1:65150/zxDbJUF-f2w=/ws

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 73 pixels on the bottom.
※RenderFlexの下部が73ピクセルオーバーフローしました
  -Columnウィジェットが与えられたスペースを超えて子ウィジェットを表示しようとした為に発生した
  -(Columnウィジェット内の要素の合計高さが親ウィジェットの提供する高さを超えているという事)

The relevant error-causing widget was:
    Column Column:file:(省略)task_list_page.dart:54:13

The overflowing RenderFlex has an orientation of Axis.vertical.
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#ed9fb relayoutBoundary=up20 OVERFLOWING
    needs compositing
    parentData: offset=Offset(0.0, 56.0); id=_ScaffoldSlot.body (can use size)
    constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=46.7)
    size: Size(1264.0, 46.7)
    direction: vertical
    mainAxisAlignment: start
    mainAxisSize: max
    crossAxisAlignment: center
    verticalDirection: down
    child 1: RenderSemanticsAnnotations#1601f relayoutBoundary=up21
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
        constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
        size: Size(1264.0, 60.0)
        child: RenderMouseRegion#ec11b relayoutBoundary=up22
            parentData: <none> (can use size)
            constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
            size: Size(1264.0, 60.0)
            behavior: opaque
            listeners: enter, exit
            cursor: SystemMouseCursor(basic)
            child: RenderSemanticsAnnotations#b3efb relayoutBoundary=up23
                parentData: <none> (can use size)
                constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
                size: Size(1264.0, 60.0)
                child: RenderPointerListener#9c491 relayoutBoundary=up24
                    parentData: <none> (can use size)
                    constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
                    size: Size(1264.0, 60.0)
                    behavior: opaque
                    listeners: down, panZoomStart
    child 2: RenderRepaintBoundary#a5a38 relayoutBoundary=up21
        needs compositing
        parentData: offset=Offset(0.0, 60.0); flex=1; fit=FlexFit.tight (can use size)
        constraints: BoxConstraints(0.0<=w<=1264.0, h=0.0)
        layer: OffsetLayer#b6230 DETACHED
            handles: 2
            offset: Offset(0.0, 449.3)
        size: Size(1264.0, 0.0)
        metrics: 0.0% useful (1 bad vs 0 good)
        diagnosis: insufficient data to draw conclusion (less than five repaints)
        child: RenderPointerListener#a1e7d relayoutBoundary=up22
            needs compositing
            parentData: <none> (can use size)
            constraints: BoxConstraints(0.0<=w<=1264.0, h=0.0)
            size: Size(1264.0, 0.0)
            behavior: deferToChild
            listeners: signal
            child: RenderSemanticsGestureHandler#47079 relayoutBoundary=up23
                needs compositing
                parentData: <none> (can use size)
                constraints: BoxConstraints(0.0<=w<=1264.0, h=0.0)
                size: Size(1264.0, 0.0)
                behavior: deferToChild
                gestures: <none>
                child: RenderPointerListener#3de7e relayoutBoundary=up24
                    needs compositing
                    parentData: <none> (can use size)
                    constraints: BoxConstraints(0.0<=w<=1264.0, h=0.0)
                    size: Size(1264.0, 0.0)
                    behavior: deferToChild
                    listeners: down, panZoomStart
    child 3: RenderSemanticsAnnotations#6e6a4 relayoutBoundary=up21
        parentData: offset=Offset(0.0, 60.0); flex=null; fit=null (can use size)
        constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
        size: Size(1264.0, 60.0)
        child: RenderMouseRegion#b4d2e relayoutBoundary=up22
            parentData: <none> (can use size)
            constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
            size: Size(1264.0, 60.0)
            behavior: opaque
            listeners: enter, exit
            cursor: SystemMouseCursor(basic)
            child: RenderSemanticsAnnotations#27e86 relayoutBoundary=up23
                parentData: <none> (can use size)
                constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
                size: Size(1264.0, 60.0)
                child: RenderPointerListener#61afe relayoutBoundary=up24
                    parentData: <none> (can use size)
                    constraints: BoxConstraints(0.0<=w<=1264.0, 0.0<=h<=Infinity)
                    size: Size(1264.0, 60.0)
                    behavior: opaque
                    listeners: down, panZoomStart
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢

4.対応

各ウィジェットにflex設定で解消しました。

コメントを残す