旅拍模块报错
来源:16-5 实现旅拍瀑布流布局-2

诺巴蒂
2021-07-04
一模一样的代码,直接粘过来的,在底部导航栏切换的时候,还有内容超过屏幕高度滚动的时候就报这个错误。但是页面还是可以正常运行
======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
Updated layout information required for RenderIndexedSemantics#c0929 NEEDS-LAYOUT to calculate semantics.
'package:flutter/src/rendering/object.dart':
Failed assertion: line 2653 pos 12: '!_needsLayout'
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md
When the exception was thrown, this was the stack:
#2 RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:2653:12)
#3 RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:2675:61)
#4 Iterable.forEach (dart:core/iterable.dart:257:30)
#5 RenderSliverVariableSizeBoxAdaptor.visitChildren (package:flutter_staggered_grid_view/src/rendering/sliver_variable_size_box_adaptor.dart:294:29)
#6 RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:2760:5)
...
====================================================================================================
写回答
1回答
-
插件flutter_staggered_grid_view内部抛出的log,可以忽略。
012021-07-06
相似问题