我正在使用Flutter构建一个应用程序,并且在我选择运行flutter-upgrade
命令以升级安装之前,它一直运行良好。现在,我使用ListView的应用程序的一部分已完全损坏,尝试访问使用ListView的应用程序的一部分后,其余的应用程序中断了,并且小部件停止正确呈现。
在升级Flutter安装之前,一切工作都很好,我需要在下周之前完成应用程序。
这是日志:
I/flutter ( 4850): Another exception was thrown: not implemented
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: _RenderListTile#d393e relayoutBoundary=up13 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPadding#91fed relayoutBoundary=up12 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#f8b9f relayoutBoundary=up11 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPointerListener#907c6 relayoutBoundary=up10 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsGestureHandler#82c34 relayoutBoundary=up9 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: _RenderInkFeatures#c0929 relayoutBoundary=up8 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderCustomPaint#cb75f relayoutBoundary=up7 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#f4dd1 relayoutBoundary=up6 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPadding#21ed2 relayoutBoundary=up5 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#bfca1 relayoutBoundary=up4 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 441 pos 12: 'child.hasSize': is not true.
I/flutter ( 4850): Another exception was thrown: NoSuchMethodError: The getter 'scrollOffsetCorrection' was called on null.
I/flutter ( 4850): Another exception was thrown: NoSuchMethodError: The method 'debugAssertIsValid' was called on null.
I/flutter ( 4850): Another exception was thrown: NoSuchMethodError: The getter 'visible' was called on null.
I/flutter ( 4850): Another exception was thrown: Please see the documentation for computeDistanceToActualBaseline for the required calling conventions of this method.
I/flutter ( 4850): Another exception was thrown: Please see the documentation for computeDistanceToActualBaseline for the required calling conventions of this method.
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: _RenderListTile#287cb relayoutBoundary=up24 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPadding#c0494 relayoutBoundary=up23 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#aeb03 relayoutBoundary=up22 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPointerListener#e84fd relayoutBoundary=up21 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsGestureHandler#9eefe relayoutBoundary=up20 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderFlex#21c05 relayoutBoundary=up19 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: _RenderInkFeatures#206e4 relayoutBoundary=up18 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderCustomPaint#97115 relayoutBoundary=up17 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#a3dfd relayoutBoundary=up16 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPadding#b037b relayoutBoundary=up15 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#73cda relayoutBoundary=up14 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 441 pos 12: 'child.hasSize': is not true.
I/flutter ( 4850): Another exception was thrown: NoSuchMethodError: The getter 'scrollOffsetCorrection' was called on null.
I/flutter ( 4850): Another exception was thrown: NoSuchMethodError: The method 'debugAssertIsValid' was called on null.
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderShrinkWrappingViewport#3820e relayoutBoundary=up10 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderIgnorePointer#24f8f relayoutBoundary=up9 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#2dc3c relayoutBoundary=up8 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPointerListener#3a18a relayoutBoundary=up7 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsGestureHandler#32415 relayoutBoundary=up6 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: _RenderExcludableScrollSemantics#4231f relayoutBoundary=up5 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#25954 relayoutBoundary=up4 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderCustomPaint#f9945 relayoutBoundary=up3 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#d55b6 relayoutBoundary=up2 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: Please see the documentation for computeDistanceToActualBaseline for the required calling conventions of this method.
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: _RenderListTile#55872 relayoutBoundary=up9 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPadding#14d29 relayoutBoundary=up8 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsAnnotations#da286 relayoutBoundary=up7 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderPointerListener#ac1fb relayoutBoundary=up6 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderSemanticsGestureHandler#daa7e relayoutBoundary=up5 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: RenderBox was not laid out: RenderFlex#4e74a relayoutBoundary=up4 NEEDS-PAINT
I/flutter ( 4850): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 441 pos 12: 'child.hasSize': is not true.
I/flutter ( 4850): Another exception was thrown: NoSuchMethodError: The getter 'scrollOffsetCorrection' was called on null.
I/flutter ( 4850): Another exception was thrown: NoSuchMethodError: The method 'debugAssertIsValid' was called on null.
非常感谢您能提供的任何帮助。 预先感谢。
PS:以防万一,可以在here中找到实现ListView的代码。
我的Flutter版本: Flutter 0.5.7-pre.62•频道主播•https://github.com/flutter/flutter.git 框架•版本7ac183794b(27小时前)•2018-07-06 15:21:29 -0700 发动机•修订版6fe748490d 工具•Dart 2.0.0-dev.63.0.flutter-4c9689c1d2
我目前在主频道上,但该应用仍无法通过Beta频道使用最新版本。
答案 0 :(得分:2)
您可以随时通过将Flutter存储库克隆为所需版本来降级Flutter。然后运行flutter doctor
。
答案 1 :(得分:1)
除了上一个答案外,您可以使用dev
分支代替master
。随着越来越多的人为Flutter做出贡献,master
可能会变得不稳定。 dev
通常比master落后一周,并且对于开发而言要稳定得多。