Flutter RenderFlex子项具有非零弯曲,但传入的高度约束在颤振中是无界的

Flutter RenderFlex子项具有非零弯曲,但传入的高度约束在颤振中是无界的,flutter,Flutter,当我在channel view中呈现一个article card list小部件时,通道视图列组件在Flatter中如下所示(通道元素下面的article list card): 返回手势检测器( onHorizontalDragStart:_onHorizontalDragStart, onHorizontalDragUpdate:_onHorizontalDragUpdate, 在水平方向上:_在水平方向上, 子:容器( 约束:BoxConstraints( minHeight:MediaQ

当我在channel view中呈现一个article card list小部件时,通道视图列组件在Flatter中如下所示(通道元素下面的article list card):

返回手势检测器(
onHorizontalDragStart:_onHorizontalDragStart,
onHorizontalDragUpdate:_onHorizontalDragUpdate,
在水平方向上:_在水平方向上,
子:容器(
约束:BoxConstraints(
minHeight:MediaQuery.of(context).size.height*0.9,
),
颜色:主题。背景。脚手架背景颜色,
孩子:填充(
填充:const EdgeInsets.all(
16.0,
),
子:列(
crossAxisAlignment:crossAxisAlignment.stretch,
mainAxisSize:mainAxisSize.min,
儿童:[
墨水池(
onTap:()=>{},
孩子:填充(
填充:仅限常量边集(底部:8.0),
子:容器(
子:文本(
item.subName==“”?“注释”:item.subName,
样式:Theme.of(context).textTheme.headline5.copyWith(
fontWeight:fontWeight.w600,
),
),
),
),
),
如果(item.isFav==1)
填充物(
填充:仅限常量边集(顶部:8,底部:8.0,右侧:1),
孩子:ButtonTheme(
最小宽度:50,
身高:30.0,
子:RaisedButton.icon(
颜色:主题。背景。原色,
图标:图标(
羽毛,检查圆,
尺码:16,
颜色:主题。背景。画布颜色,
),
形状:新的RoundedRectangleBorder(borderRadius:新的borderRadius.circular(5.0)),
按下时:()=>touchSub(item.id.toString(),SubStatus.UNSUB),
标签:文本(“已订阅"),
)),
),
如果(item.isFav!=1)
填充物(
填充:仅限常量边集(顶部:8,底部:8.0,右侧:1),
孩子:ButtonTheme(
最小宽度:50,
身高:30.0,
孩子:升起按钮(
颜色:主题。背景。原色,
形状:新的RoundedRectangleBorder(borderRadius:新的borderRadius.circular(5.0)),
按下时:()=>touchSub(item.id.toString(),SubStatus.SUB),
子:文本(“订阅"),
)),
),
墨水池(
onTap:(){
导航器。推(
上下文
MaterialPackageRoute(生成器:(上下文)=>ProfilePage(用户名:item.author)),
);
},
孩子:RichText(
text:TextSpan(
儿童:[
TextSpan(
文本:item.author,
样式:Theme.of(context).textTheme.caption.copyWith(
颜色:主题。背景。原色,
),
),
],
),
),
),
如果(item.content!=“”)
Html(
数据:item.content,
风格:{
“身体”:风格(
fontSize:fontSize(19.0),
),
},
onLinkTap:(url)=>launchUrl(url),
),
if(item.parts.isNotEmpty)
填充物(
填充:仅限常量边集(顶部:8.0),
),
扩大(
孩子:大小盒子(
高度:200.0,
子:嵌套滚动视图(
headerSliverBuilder:(BuildContext上下文,boolInnerBoxIsCrolled){
返回[];
},
正文:viewService.buildComponent(“homelistdefault”),
)))
],
),
),
));
显示错误:

======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
RenderFlex children have non-zero flex but incoming height constraints are unbounded.

When a column is in a parent that does not provide a finite height constraint, for example if it is in a vertical scrollable, it will try to shrink-wrap its children along the vertical axis. Setting a flex on a child (e.g. using Expanded) indicates that the child is to expand to fill the remaining space in the vertical direction.
These two directives are mutually exclusive. If a parent is to shrink-wrap its child, the child cannot simultaneously expand to fit its parent.

Consider setting mainAxisSize to MainAxisSize.min and using FlexFit.loose fits for the flexible children (using Flexible rather than Expanded). This will allow the flexible children to size themselves to less than the infinite remaining space they would otherwise be forced to take, and then will cause the RenderFlex to shrink-wrap the children rather than expanding to fit the maximum constraints provided by the parent.

If this message did not help you determine the problem, consider using debugDumpRenderTree():
  https://flutter.dev/debugging/#rendering-layer
  http://api.flutter.dev/flutter/rendering/debugDumpRenderTree.html
The affected RenderFlex is: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
  needs compositing
  parentData: offset=Offset(16.0, 16.0) (can use size)
  constraints: BoxConstraints(w=379.4, 706.5<=h<=Infinity)
  size: MISSING
  direction: vertical
  mainAxisAlignment: start
  mainAxisSize: min
  crossAxisAlignment: stretch
  verticalDirection: down
...  child 1: RenderSemanticsAnnotations#e7e5a relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 43.0)
...    child: RenderMouseRegion#1b035 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 43.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#215dd relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 43.0)
...        gestures: tap
...        child: RenderPointerListener#b7a1a relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 43.0)
...          behavior: opaque
...          listeners: down
...  child 2: RenderPadding#9c383 relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 64.0)
...    padding: EdgeInsets(0.0, 8.0, 1.0, 8.0)
...    textDirection: ltr
...    child: RenderSemanticsAnnotations#71e7e relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: offset=Offset(0.0, 8.0) (can use size)
...      constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...      semantic boundary
...      size: Size(378.4, 48.0)
...      child: _RenderInputPadding#1c96b relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...        size: Size(378.4, 48.0)
...        child: RenderConstrainedBox#feb37 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: offset=Offset(0.0, 9.0) (can use size)
...          constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...          size: Size(378.4, 30.0)
...          additionalConstraints: BoxConstraints(50.0<=w<=Infinity, 30.0<=h<=Infinity)
...  child 3: RenderSemanticsAnnotations#23aba relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 16.0)
...    child: RenderMouseRegion#b2320 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 16.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#48ed1 relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 16.0)
...        gestures: tap
...        child: RenderPointerListener#bc8c8 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 16.0)
...          behavior: opaque
...          listeners: down
...  child 4: RenderConstrainedBox#160ca NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
...    constraints: MISSING
...    size: MISSING
...    additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=200.0)
...    child: RenderRepaintBoundary#cacc9 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: <none>
...      constraints: MISSING
...      size: MISSING
...      usefulness ratio: no metrics collected yet (never painted)
...      child: RenderCustomPaint#65dd2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none>
...        constraints: MISSING
...        size: MISSING
...        child: RenderRepaintBoundary#5830f NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: <none>
...          constraints: MISSING
...          size: MISSING
...          usefulness ratio: no metrics collected yet (never painted)
The creator information is set to: Column ← Padding ← ColoredBox ← ConstrainedBox ← Container ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← ComponentWidget<ChannelDetailState>-[<ChannelDetailComponent>] ← SliverToBoxAdapter ← ⋯

See also: https://flutter.dev/layout/

If none of the above helps enough to fix this problem, please don't hesitate to file a bug:
  https://github.com/flutter/flutter/issues/new?template=BUG.md
The relevant error-causing widget was: 
  Column file:///Users/dolphin/Documents/GitHub/cruise-open/lib/src/page/channel/channeldetail_component/view.dart:89:18
When the exception was thrown, this was the stack: 
#0      RenderFlex.performLayout.<anonymous closure> (package:flutter/src/rendering/flex.dart:717:11)
#1      RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:744:10)
#2      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#3      RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:207:12)
#4      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
...
The following RenderObject was being processed when the exception was fired: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...  needs compositing
...  parentData: offset=Offset(16.0, 16.0) (can use size)
...  constraints: BoxConstraints(w=379.4, 706.5<=h<=Infinity)
...  size: MISSING
...  direction: vertical
...  mainAxisAlignment: start
...  mainAxisSize: min
...  crossAxisAlignment: stretch
...  verticalDirection: down
RenderObject: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
  needs compositing
  parentData: offset=Offset(16.0, 16.0) (can use size)
  constraints: BoxConstraints(w=379.4, 706.5<=h<=Infinity)
  size: MISSING
  direction: vertical
  mainAxisAlignment: start
  mainAxisSize: min
  crossAxisAlignment: stretch
  verticalDirection: down
...  child 1: RenderSemanticsAnnotations#e7e5a relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 43.0)
...    child: RenderMouseRegion#1b035 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 43.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#215dd relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 43.0)
...        gestures: tap
...        child: RenderPointerListener#b7a1a relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 43.0)
...          behavior: opaque
...          listeners: down
...  child 2: RenderPadding#9c383 relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 64.0)
...    padding: EdgeInsets(0.0, 8.0, 1.0, 8.0)
...    textDirection: ltr
...    child: RenderSemanticsAnnotations#71e7e relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: offset=Offset(0.0, 8.0) (can use size)
...      constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...      semantic boundary
...      size: Size(378.4, 48.0)
...      child: _RenderInputPadding#1c96b relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...        size: Size(378.4, 48.0)
...        child: RenderConstrainedBox#feb37 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: offset=Offset(0.0, 9.0) (can use size)
...          constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...          size: Size(378.4, 30.0)
...          additionalConstraints: BoxConstraints(50.0<=w<=Infinity, 30.0<=h<=Infinity)
...  child 3: RenderSemanticsAnnotations#23aba relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 16.0)
...    child: RenderMouseRegion#b2320 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 16.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#48ed1 relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 16.0)
...        gestures: tap
...        child: RenderPointerListener#bc8c8 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 16.0)
...          behavior: opaque
...          listeners: down
...  child 4: RenderConstrainedBox#160ca NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
...    constraints: MISSING
...    size: MISSING
...    additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=200.0)
...    child: RenderRepaintBoundary#cacc9 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: <none>
...      constraints: MISSING
...      size: MISSING
...      usefulness ratio: no metrics collected yet (never painted)
...      child: RenderCustomPaint#65dd2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none>
...        constraints: MISSING
...        size: MISSING
...        child: RenderRepaintBoundary#5830f NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: <none>
...          constraints: MISSING
...          size: MISSING
...          usefulness ratio: no metrics collected yet (never painted)
====================================================================================================

======== Exception caught by rendering library =====================================================
RenderBox was not laid out: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
The relevant error-causing widget was: 
  Padding file:///Users/dolphin/Documents/GitHub/cruise-open/lib/src/page/channel/channeldetail_component/view.dart:85:16
====================================================================================================

======== Exception caught by rendering library =====================================================
RenderBox was not laid out: RenderPadding#9b6ca relayoutBoundary=up6 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
The relevant error-causing widget was: 
  Container file:///Users/dolphin/Documents/GitHub/cruise-open/lib/src/page/channel/channeldetail_component/view.dart:80:14
=======呈现库捕获异常=====================================================
在performLayout()期间引发了以下断言:
RenderFlex子项具有非零的弹性,但传入的高度约束是无界的。
当列位于不提供有限高度约束的父列中时,例如,如果它位于垂直可滚动的列中,它将尝试沿垂直轴收缩包裹其子列。在子列上设置柔性(例如使用展开)表示该子列将展开以填充垂直方向上的剩余空间。
这两个指令是互斥的。如果父级要收缩包装其子级,则子级不能同时展开以适合其父级。
考虑将MaxAxIsSead设置为MainAxisSize.min,并使用FLUFIT.For适合灵活的儿童(使用灵活而非扩展)。这将允许灵活的子对象将自己的大小调整为小于它们将被迫占用的无限剩余空间,然后将导致RenderFlex收缩包裹子对象,而不是展开以适应父对象提供的最大约束。
如果此消息不能帮助您确定问题,请考虑使用Debug gDimePrimeReTee():
https://flutter.dev/debugging/#rendering-层
http://api.flutter.dev/flutter/rendering/debugDumpRenderTree.html
受影响的RenderFlex是:RenderFlex#681a6 re
======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
RenderFlex children have non-zero flex but incoming height constraints are unbounded.

When a column is in a parent that does not provide a finite height constraint, for example if it is in a vertical scrollable, it will try to shrink-wrap its children along the vertical axis. Setting a flex on a child (e.g. using Expanded) indicates that the child is to expand to fill the remaining space in the vertical direction.
These two directives are mutually exclusive. If a parent is to shrink-wrap its child, the child cannot simultaneously expand to fit its parent.

Consider setting mainAxisSize to MainAxisSize.min and using FlexFit.loose fits for the flexible children (using Flexible rather than Expanded). This will allow the flexible children to size themselves to less than the infinite remaining space they would otherwise be forced to take, and then will cause the RenderFlex to shrink-wrap the children rather than expanding to fit the maximum constraints provided by the parent.

If this message did not help you determine the problem, consider using debugDumpRenderTree():
  https://flutter.dev/debugging/#rendering-layer
  http://api.flutter.dev/flutter/rendering/debugDumpRenderTree.html
The affected RenderFlex is: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
  needs compositing
  parentData: offset=Offset(16.0, 16.0) (can use size)
  constraints: BoxConstraints(w=379.4, 706.5<=h<=Infinity)
  size: MISSING
  direction: vertical
  mainAxisAlignment: start
  mainAxisSize: min
  crossAxisAlignment: stretch
  verticalDirection: down
...  child 1: RenderSemanticsAnnotations#e7e5a relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 43.0)
...    child: RenderMouseRegion#1b035 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 43.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#215dd relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 43.0)
...        gestures: tap
...        child: RenderPointerListener#b7a1a relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 43.0)
...          behavior: opaque
...          listeners: down
...  child 2: RenderPadding#9c383 relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 64.0)
...    padding: EdgeInsets(0.0, 8.0, 1.0, 8.0)
...    textDirection: ltr
...    child: RenderSemanticsAnnotations#71e7e relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: offset=Offset(0.0, 8.0) (can use size)
...      constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...      semantic boundary
...      size: Size(378.4, 48.0)
...      child: _RenderInputPadding#1c96b relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...        size: Size(378.4, 48.0)
...        child: RenderConstrainedBox#feb37 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: offset=Offset(0.0, 9.0) (can use size)
...          constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...          size: Size(378.4, 30.0)
...          additionalConstraints: BoxConstraints(50.0<=w<=Infinity, 30.0<=h<=Infinity)
...  child 3: RenderSemanticsAnnotations#23aba relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 16.0)
...    child: RenderMouseRegion#b2320 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 16.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#48ed1 relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 16.0)
...        gestures: tap
...        child: RenderPointerListener#bc8c8 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 16.0)
...          behavior: opaque
...          listeners: down
...  child 4: RenderConstrainedBox#160ca NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
...    constraints: MISSING
...    size: MISSING
...    additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=200.0)
...    child: RenderRepaintBoundary#cacc9 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: <none>
...      constraints: MISSING
...      size: MISSING
...      usefulness ratio: no metrics collected yet (never painted)
...      child: RenderCustomPaint#65dd2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none>
...        constraints: MISSING
...        size: MISSING
...        child: RenderRepaintBoundary#5830f NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: <none>
...          constraints: MISSING
...          size: MISSING
...          usefulness ratio: no metrics collected yet (never painted)
The creator information is set to: Column ← Padding ← ColoredBox ← ConstrainedBox ← Container ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← ComponentWidget<ChannelDetailState>-[<ChannelDetailComponent>] ← SliverToBoxAdapter ← ⋯

See also: https://flutter.dev/layout/

If none of the above helps enough to fix this problem, please don't hesitate to file a bug:
  https://github.com/flutter/flutter/issues/new?template=BUG.md
The relevant error-causing widget was: 
  Column file:///Users/dolphin/Documents/GitHub/cruise-open/lib/src/page/channel/channeldetail_component/view.dart:89:18
When the exception was thrown, this was the stack: 
#0      RenderFlex.performLayout.<anonymous closure> (package:flutter/src/rendering/flex.dart:717:11)
#1      RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:744:10)
#2      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
#3      RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:207:12)
#4      RenderObject.layout (package:flutter/src/rendering/object.dart:1777:7)
...
The following RenderObject was being processed when the exception was fired: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...  needs compositing
...  parentData: offset=Offset(16.0, 16.0) (can use size)
...  constraints: BoxConstraints(w=379.4, 706.5<=h<=Infinity)
...  size: MISSING
...  direction: vertical
...  mainAxisAlignment: start
...  mainAxisSize: min
...  crossAxisAlignment: stretch
...  verticalDirection: down
RenderObject: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
  needs compositing
  parentData: offset=Offset(16.0, 16.0) (can use size)
  constraints: BoxConstraints(w=379.4, 706.5<=h<=Infinity)
  size: MISSING
  direction: vertical
  mainAxisAlignment: start
  mainAxisSize: min
  crossAxisAlignment: stretch
  verticalDirection: down
...  child 1: RenderSemanticsAnnotations#e7e5a relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 43.0)
...    child: RenderMouseRegion#1b035 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 43.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#215dd relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 43.0)
...        gestures: tap
...        child: RenderPointerListener#b7a1a relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 43.0)
...          behavior: opaque
...          listeners: down
...  child 2: RenderPadding#9c383 relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 64.0)
...    padding: EdgeInsets(0.0, 8.0, 1.0, 8.0)
...    textDirection: ltr
...    child: RenderSemanticsAnnotations#71e7e relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: offset=Offset(0.0, 8.0) (can use size)
...      constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...      semantic boundary
...      size: Size(378.4, 48.0)
...      child: _RenderInputPadding#1c96b relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...        size: Size(378.4, 48.0)
...        child: RenderConstrainedBox#feb37 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: offset=Offset(0.0, 9.0) (can use size)
...          constraints: BoxConstraints(w=378.4, 0.0<=h<=Infinity)
...          size: Size(378.4, 30.0)
...          additionalConstraints: BoxConstraints(50.0<=w<=Infinity, 30.0<=h<=Infinity)
...  child 3: RenderSemanticsAnnotations#23aba relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
...    constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...    size: Size(379.4, 16.0)
...    child: RenderMouseRegion#b2320 relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...      size: Size(379.4, 16.0)
...      listeners: enter, exit
...      cursor: SystemMouseCursor(click)
...      child: RenderSemanticsGestureHandler#48ed1 relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...        size: Size(379.4, 16.0)
...        gestures: tap
...        child: RenderPointerListener#bc8c8 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=379.4, 0.0<=h<=Infinity)
...          size: Size(379.4, 16.0)
...          behavior: opaque
...          listeners: down
...  child 4: RenderConstrainedBox#160ca NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
...    constraints: MISSING
...    size: MISSING
...    additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=200.0)
...    child: RenderRepaintBoundary#cacc9 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...      needs compositing
...      parentData: <none>
...      constraints: MISSING
...      size: MISSING
...      usefulness ratio: no metrics collected yet (never painted)
...      child: RenderCustomPaint#65dd2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...        needs compositing
...        parentData: <none>
...        constraints: MISSING
...        size: MISSING
...        child: RenderRepaintBoundary#5830f NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...          needs compositing
...          parentData: <none>
...          constraints: MISSING
...          size: MISSING
...          usefulness ratio: no metrics collected yet (never painted)
====================================================================================================

======== Exception caught by rendering library =====================================================
RenderBox was not laid out: RenderFlex#681a6 relayoutBoundary=up7 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
The relevant error-causing widget was: 
  Padding file:///Users/dolphin/Documents/GitHub/cruise-open/lib/src/page/channel/channeldetail_component/view.dart:85:16
====================================================================================================

======== Exception caught by rendering library =====================================================
RenderBox was not laid out: RenderPadding#9b6ca relayoutBoundary=up6 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
The relevant error-causing widget was: 
  Container file:///Users/dolphin/Documents/GitHub/cruise-open/lib/src/page/channel/channeldetail_component/view.dart:80:14
return SingleChildScrollView (
child:
 GestureDetector(
      onHorizontalDragStart: _onHorizontalDragStart,
      onHorizontalDragUpdate: _onHorizontalDragUpdate,
      onHorizontalDragEnd: _onHorizontalDragEnd,
      child: Container(
        constraints: BoxConstraints(
          minHeight: MediaQuery.of(context).size.height * 0.9,
        ),
        color: Theme.of(context).scaffoldBackgroundColor,
        child: Padding(
          padding: const EdgeInsets.all(
            16.0,
          ),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            mainAxisSize: MainAxisSize.min,
            children: [
              InkWell(
                onTap: () => {},
                child: Padding(
                  padding: const EdgeInsets.only(bottom: 8.0),
                  child: Container(
                    child: Text(
                      item.subName == "" ? "Comment" : item.subName,
                      style: Theme.of(context).textTheme.headline5.copyWith(
                            fontWeight: FontWeight.w600,
                          ),
                    ),
                  ),
                ),
              ),
              if (item.isFav == 1)
                Padding(
                  padding: const EdgeInsets.only(top: 8, bottom: 8.0, right: 1),
                  child: ButtonTheme(
                      minWidth: 50,
                      height: 30.0,
                      child: RaisedButton.icon(
                        color: Theme.of(context).primaryColor,
                        icon: Icon(
                          Feather.check_circle,
                          size: 16,
                          color: Theme.of(context).canvasColor,
                        ),
                        shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(5.0)),
                        onPressed: () => touchSub(item.id.toString(), SubStatus.UNSUB),
                        label: Text("已订阅"),
                      )),
                ),
              if (item.isFav != 1)
                Padding(
                  padding: const EdgeInsets.only(top: 8, bottom: 8.0, right: 1),
                  child: ButtonTheme(
                      minWidth: 50,
                      height: 30.0,
                      child: RaisedButton(
                        color: Theme.of(context).primaryColor,
                        shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(5.0)),
                        onPressed: () => touchSub(item.id.toString(), SubStatus.SUB),
                        child: Text("订阅"),
                      )),
                ),
              InkWell(
                onTap: () {
                  Navigator.push(
                    context,
                    MaterialPageRoute(builder: (context) => ProfilePage(username: item.author)),
                  );
                },
                child: RichText(
                  text: TextSpan(
                    children: <TextSpan>[
                      TextSpan(
                        text: item.author,
                        style: Theme.of(context).textTheme.caption.copyWith(
                              color: Theme.of(context).primaryColor,
                            ),
                      ),
                    ],
                  ),
                ),
              ),
              if (item.content != "")
                Html(
                  data: item.content,
                  style: {
                    "body": Style(
                      fontSize: FontSize(19.0),
                    ),
                  },
                  onLinkTap: (url) => launchUrl(url),
                ),
              if (item.parts.isNotEmpty)
                Padding(
                  padding: const EdgeInsets.only(top: 8.0),
                ),
              Expanded(
                  child: SizedBox(
                      height: 200.0,
                      child: NestedScrollView(
                        headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
                          return <Widget>[];
                        },
                        body: viewService.buildComponent("homelistdefault"),
                      )))
            ],
          ),
        ),
      )));