flutter报错_needsLayout

Posted 大前端之旅

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了flutter报错_needsLayout相关的知识,希望对你有一定的参考价值。

_AssertionError (‘package:flutter/src/rendering/object.dart’: Failed assertion: line 2789 pos 12: ‘!_needsLayout’: Updated layout information required for RenderIndexedSemantics#dc6e5 NEEDS-LAYOUT to calculate semantics.)

它似乎来自flutter_staggered_grid_view插件:

RenderSliverVariableSizeBoxAdaptor.visitChildren (package:flutter_staggered_grid_view/src/rendering/sliver_variable_size_box_adaptor.dart:296:29)

如果您删除该插件代码并重试,看一下该问题是否会复现

以上是关于flutter报错_needsLayout的主要内容,如果未能解决你的问题,请参考以下文章

错误记录发布 Flutter 插件包报错 ( Failed to upload the package.pub finished with exit code 1 )

错误记录发布 Flutter 插件包报错 ( ‘gmail.com‘ has insufficient permissions to upload new versions of package)(代

错误记录发布 Flutter 插件包报错 ( It‘s strongly recommended to include a “homepage“ or “repository“ field )(代码片

flutter工程,无法运行,报错:The ‘java‘ plugin has been applied, but it is not compatible

Flutter解决 Failed assertion: line 5142 pos 12: ‘!_debugLocked‘: is not true.

Flutter开发iOS上TextField长按或反复点击报错No CupertinoLocalizations found.