Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
suoigwg opened this issue Jun 25, 2019 · 1 comment
Closed

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

suoigwg opened this issue Jun 25, 2019 · 1 comment

Comments

@suoigwg
Copy link

suoigwg commented Jun 25, 2019

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.

@Sub6Resources
Copy link
Owner

Sub6Resources commented Jun 25, 2019

Wrap the Html widget in a SingleChildScrollView to get the page to scroll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants