目前看来不影响使用,只会报错,但是使用RefreshIndicator并不会报错报错信息如下:
======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2009 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout ||
(RenderObject.debugActiveLayout == parent && size._canBeUsedByParent)'
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
The relevant error-causing widget was:
ListView ListView:file:///Users/bin_ren/AndroidStudioProjects/qxb/lib_flutter/lib/page/dimension/equity_pledge/demo.dart:94:35
When the exception was thrown, this was the stack:
目前看来不影响使用,只会报错,但是使用RefreshIndicator并不会报错 报错信息如下: ======== Exception caught by rendering library ===================================================== The following assertion was thrown during performLayout(): RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout(). 'package:flutter/src/rendering/box.dart': Failed assertion: line 2009 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout || (RenderObject.debugActiveLayout == parent && size._canBeUsedByParent)'
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
The relevant error-causing widget was: ListView ListView:file:///Users/bin_ren/AndroidStudioProjects/qxb/lib_flutter/lib/page/dimension/equity_pledge/demo.dart:94:35 When the exception was thrown, this was the stack:
2 RenderBox.size. (package:flutter/src/rendering/box.dart:2009:13)
3 RenderBox.size (package:flutter/src/rendering/box.dart:2022:6)
4 Element.size (package:flutter/src/widgets/framework.dart:4229:27)
5 IndicatorNotifier.position= (package:easy_refresh/src/notifier/indicator_notifier.dart:149:27)
====================================================================================================
Demo: