Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dart 没有给定高度的web视图_Dart_Flutter - Fatal编程技术网

Dart 没有给定高度的web视图

Dart 没有给定高度的web视图,dart,flutter,Dart,Flutter,我可以在我的小部件树中设置一个带有内联URL的WebView,而不给WebView一个特定的高度,并让它根据接收内容的大小进行扩展或收缩吗 现在我必须给webview一个高度,否则我将面临例外: The following assertion was thrown during performResize(): I/flutter ( 6783): RenderAndroidView object was given an infinite size during layout. I/flu

我可以在我的小部件树中设置一个带有内联URL的
WebView
,而不给
WebView
一个特定的高度,并让它根据接收内容的大小进行扩展或收缩吗

现在我必须给webview一个高度,否则我将面临例外:

The following assertion was thrown during performResize():

I/flutter ( 6783): RenderAndroidView object was given an infinite size during layout.

I/flutter ( 6783): This probably means that it is a render object that tries to be as big as possible, but it was put

I/flutter ( 6783): inside another render object that allows its children to pick their own size.

I/flutter ( 6783): The nearest ancestor providing an unbounded height constraint is:

I/flutter ( 6783):   RenderIndexedSemantics#dbf32 relayoutBoundary=up16 NEEDS-LAYOUT NEEDS-PAINT

I/flutter ( 6783):   creator: IndexedSemantics ← 

NotificationListener<KeepAliveNotification> ← KeepAlive ←

I/flutter ( 6783):   AutomaticKeepAlive ← SliverList ← MediaQuery ← 

SliverPadding ← ShrinkWrappingViewport ←

I/flutter ( 6783):   IgnorePointer-[GlobalKey#ae5f8] ← Semantics ← Listener ← 
_GestureSemantics ← ⋯

I/flutter ( 6783):   parentData: index=4; layoutOffset=0.0 (can use size)

I/flutter ( 6783):   constraints: BoxConstraints(w=360.0, 0.0<=h<=Infinity)

I/flutter ( 6783):   semantic boundary

I/flutter ( 6783):   size: MISSING

I/flutter ( 6783):   index: 4
在performResize()期间引发了以下断言:
I/颤振(6783):在布局过程中,RenderAndroidView对象被赋予无限大的尺寸。
I/flatter(6783):这可能意味着它是一个试图尽可能大的渲染对象,但它被放置了
I/flatter(6783):在另一个渲染对象内,允许其子对象选择自己的大小。
I/颤振(6783):提供无界高度约束的最近祖先是:
I/颤振(6783):RenderIndexedSemantics#dbf32 relayoutBoundary=up16需要-布局需要-绘制
I/flatter(6783):创建者:IndexedSemantics← 
通知侦听器← 保持活力←
I/颤振(6783):自动激活← 银表← MediaQuery← 
填缝料← 收缩包装可视端口←
I/颤振(6783):忽略指针-[GlobalKey#ae5f8]← 语义学← 听众← 
_手势语义学← ⋯
I/颤振(6783):父数据:指数=4;layoutOffset=0.0(可以使用大小)
I/颤振(6783):约束:箱约束(w=360.0,0.0