Skip to content

How to scroll the content if it contains to many lines #117

@suoigwg

Description

@suoigwg

when the content contains too many lines, I got a bottom overflow
73b60a3dgy1g4dorx9agvj20u01t0n6j
I tried to wrap it with a list view, won't work

        Row(
          children: <Widget>[
            Expanded(
              child: Padding(
                padding: const EdgeInsets.only(left: 8.0, right: 8),
                child: ListView(
                  children: <Widget>[
                    ListTile(
                      title: Html(data: question.desc),
                    )
                  ],
                ),
              ),
            )
          ],
        ),

got
I/flutter (12244): The following assertion was thrown during performResize():
I/flutter (12244): Vertical viewport was given unbounded height.
I/flutter (12244): Viewports expand in the scrolling direction to fill their container.In this case, a vertical
I/flutter (12244): viewport was given an unlimited amount of vertical space in which to expand. This situation
I/flutter (12244): typically happens when a scrollable widget is nested inside another scrollable widget.
I/flutter (12244): If this widget is always nested in a scrollable widget there is no need to use a viewport because
I/flutter (12244): there will always be enough vertical space for the children. In this case, consider using a Column
I/flutter (12244): instead. Otherwise, consider using the "shrinkWrap" property (or a ShrinkWrappingViewport) to size
I/flutter (12244): the height of the viewport to the sum of the heights of its children.
I/flutter (12244):
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions