-
-
Notifications
You must be signed in to change notification settings - Fork 918
Description
when the content contains too many lines, I got a bottom overflow
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.