Flutter_ConstraintLayout icon indicating copy to clipboard operation
Flutter_ConstraintLayout copied to clipboard

Error: A value of type 'AbstractNode?' can't be assigned to a variable of type 'RenderObject?'.

Open R2tap opened this issue 2 years ago • 2 comments

尊敬的作者大大, 首先感谢你的开源精神和开发的这个开源项目。这个控件对于熟悉了android转flutter的开发者来说受益匪浅,在正常使用了一段时间该库后不经意间升级了一次flutter版本,后续便出现了title中描述的编译报错“Error: A value of type 'AbstractNode?' can't be assigned to a variable of type 'RenderObject?'.”看上去像是类型强转出现错误?烦请您查看下如何解决

Flutter SDK:V3.10.6 Dart:3.0.6 DevTools:2.23.1

预祝工作顺利,身体健康。

R2tap avatar Aug 21 '23 08:08 R2tap

使用最新的 v1.7.0-stable 版本就好了,对 flutter 3.13 做了适配

hackware1993 avatar Aug 24 '23 10:08 hackware1993

Flutter 3.13 以前用 v1.6.3,3.13 以后用 v1.7.0

hackware1993 avatar Aug 24 '23 11:08 hackware1993