cph-cachet / cognition_package

The Flutter Cognition Package
MIT License
10 stars 6 forks source link

Pixel overflow in Word Recall task #28

Open bardram opened 6 months ago

bardram commented 6 months ago

When entering the words, this pixel overflow appears when the keyboard is shown.

IMG_6520

Using a iPhone 12 Pro.

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 31 pixels on the bottom.

The relevant error-causing widget was:
    Column Column:file:///Users/bardram/dev/cognition_package/lib/src/ui/ActivityBody/rpui_word_recall_activity_body.dart:310:20

: To inspect this widget in Flutter DevTools, visit: http://127.0.0.1:9105/#/inspector?uri=http%3A%2F%2F127.0.0.1%3A49552%2F0Eda7UWqGOI%3D%2F&inspectorRef=inspector-0

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#c6d2f relayoutBoundary=up6 OVERFLOWING
    needs compositing
    parentData: offset=Offset(0.0, 0.0) (can use size)
    constraints: BoxConstraints(0.0<=w<=390.0, 0.0<=h<=589.3)
    size: Size(390.0, 589.3)
    direction: vertical
    mainAxisAlignment: start
    mainAxisSize: max
    crossAxisAlignment: center
    verticalDirection: down
    child 1: RenderConstrainedBox#6fca7 relayoutBoundary=up7
        needs compositing
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
        constraints: BoxConstraints(0.0<=w<=390.0, 0.0<=h<=Infinity)
        size: Size(390.0, 562.7)
        additionalConstraints: BoxConstraints(w=390.0, h=562.7)
        child: RenderPhysicalModel#790bc
            needs compositing
            parentData: <none> (can use size)
            constraints: BoxConstraints(w=390.0, h=562.7)
            size: Size(390.0, 562.7)
            elevation: 0.0
            color: Color(0xff1c1b1f)
            shadowColor: Color(0xff1c1b1f)
            shape: BoxShape.rectangle
            borderRadius: BorderRadius.zero
            child: _RenderInkFeatures#51f23
                needs compositing
                parentData: <none> (can use size)
                constraints: BoxConstraints(w=390.0, h=562.7)
                size: Size(390.0, 562.7)
                child: RenderCustomMultiChildLayoutBox#61c12
                    needs compositing
                    parentData: <none> (can use size)
                    constraints: BoxConstraints(w=390.0, h=562.7)
                    size: Size(390.0, 562.7)
    child 2: RenderConstrainedBox#7fc39 relayoutBoundary=up7
        parentData: offset=Offset(97.5, 562.7); flex=null; fit=null (can use size)
        constraints: BoxConstraints(0.0<=w<=390.0, 0.0<=h<=Infinity)
        size: Size(195.0, 58.0)
        additionalConstraints: BoxConstraints(w=195.0, 0.0<=h<=Infinity)
        child: RenderSemanticsAnnotations#37b11 relayoutBoundary=up8
            parentData: <none> (can use size)
            constraints: BoxConstraints(w=195.0, 0.0<=h<=Infinity)
            semantic boundary
            size: Size(195.0, 58.0)
            child: _RenderInputPadding#18c73 relayoutBoundary=up9
                parentData: <none> (can use size)
                constraints: BoxConstraints(w=195.0, 0.0<=h<=Infinity)
                size: Size(195.0, 58.0)
                child: RenderConstrainedBox#86a6f relayoutBoundary=up10
                    parentData: offset=Offset(0.0, 0.0) (can use size)
                    constraints: BoxConstraints(w=195.0, 0.0<=h<=Infinity)
                    size: Size(195.0, 58.0)
                    additionalConstraints: BoxConstraints(64.0<=w<=Infinity, 40.0<=h<=Infinity)
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤