flutter的有些bug只在热加载的时候出现

flutter的有些bug只在热加载的时候出现

 

比如下面这个:

The following assertion was thrown during performLayout():
I/flutter (31886): Please see the documentation for computeDistanceToActualBaseline for the required calling
I/flutter (31886): conventions of this method.
I/flutter (31886): 'package:flutter/src/rendering/box.dart': Failed assertion: line 1642 pos 12: '!_debugDoingBaseline'
I/flutter (31886): 
I/flutter (31886): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (31886): more information in this error message to help you determine and fix the underlying cause.
I/flutter (31886): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (31886):   https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (31886): 
I/flutter (31886): When the exception was thrown, this was the stack:
I/flutter (31886): #2      RenderBox.getDistanceToBaseline (package:flutter/src/rendering/box.dart:1642:12)
I/flutter (31886): #3      _RenderDecoration._layoutLineBox (package:flutter/src/material/input_decorator.dart:828:33)
I/flutter (31886): #4      _RenderDecoration._layout (package:flutter/src/material/input_decorator.dart:860:27)
I/flutter (31886): #5      _RenderDecoration.performLayout (package:flutter/src/material/input_decorator.dart:1070:44)
I/flutter (31886): #6      RenderObject.layout (package:flutter/src/rendering/object.dart:1644:7)
I/flutter (31886): #7      _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
I/flutter (31886): #8      RenderObject.layout (package:flutter/src/rendering/object.dart:1644:7)
I/flutter (31886): #9      _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
I/flutter (31886): #10     RenderObject.layout (package:flutter/src/rendering/object.dart:1644:7)
I/flutter (31886): #11     _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
I/flutter (31886): #12     RenderObject.layout (package:flutter/src/rendering/object.dart:1644:7)
I/flutter (31886): #13     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:799:17)
I/flutter (31886): #14     RenderObject.layout (package:flutter/src/rendering/object.dart:1644:7)
I/flutter (31886): #15     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199:11)
I/flutter (31886): #16     RenderObject.layout (package:flutter/src/rendering/object.dart:1644:7)

 

---------------------------------------------

卸载程序,重新run..就好了。。。

flutter   bug还是很多。。。。。

你可能感兴趣的:(安卓,Flutter)