Usually, this means that the Expanded widget has the wrong ancestor RenderObjectWidget. Typically, Expanded widgets are placed directly inside Flex widgets. The offending Expanded is currently placed inside a DecoratedBox widget.
翻译:
通常,这意味着扩展的小部件具有错误的RenderObjectWidget祖先。通常,扩展的小部件直接放在Flex小部件中。有问题的扩展文件当前放置在装饰框小部件中。
简言之:你的Expanded组件之上没有用Column或Row或Flex组件包起来。