我正在尝试将Stack添加到SafeArea中的ListView中。但是,有一个运行时异常,如下所示: BoxConstraints forces an infinite height.
I/flutter (18717): These invalid constraints were provided to RenderConstrainedBox's layout() function by the following
I/flutter (18717): function, which probably computed the invalid constraints in q
我有下面的Table在Card中。由于我添加了填充小部件,我得到了以下错误:
I/flutter (19671): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (19671): The following assertion was thrown during performLayout():
I/flutter (19671): 'package:flutter/src/rendering/table
我试图复制以下设计:
我似乎不明白为什么我的TabBarView中的子部件会导致异常。这里提到了无限高,但我提供了子部件的高度和宽度,所以我对发生了什么事情感到困惑。
FYI:TripPage小部件(没有显示在代码中,只显示其状态)作为值传递给Scaffold的body属性(也未显示)。我不想改变这个。
这是我的代码:
class _TripPageState extends State<TripPage> {
//ToDo: Keep as dynamic until an object is created for the listItems.
List<dyn
当我尝试点击ExpansionTile.时,我得到了这个异常
我在从消防局拿数据。
每个主要类别中只有少数几个子类别。
那么,错误是什么呢?
除了在SubCategoryWidget中添加ExpansionTile之外,我还添加了一些文本。
而且它正在正常工作。
请帮我解决这个问题。
这是我的应用程序的截图。
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during
根据颤振文档Containers with no children try to be as big as possible unless the incoming constraints are unbounded, in which case they try to be as small as possible. Containers with children size themselves to their children.,我最接近于让它开始工作:
return Stack(
children: <Widget>[
Container(
wid