这个断言一直困扰着我,无论使用哪种代码都会出现这个问题。经过搜索,发现Flutter团队一段时间内还未解决此问题,我们能做些什么呢?
v`I/flutter ( 5598): Another exception was thrown:
'package:flutter/src/animation/animations.dart': Failed assertion: line
376 pos 15: 'parent != null': is not true.
I/chatty ( 5598): uid=10085(com.example.gam3ity_aa) 1.ui identical 21
lines
I/flutter ( 5598): Another exception was thrown:
'package:flutter/src/animation/animations.dart': Failed assertion: line
376 pos 15: 'parent != null': is not true.
I/flutter ( 5598): Another exception was thrown:
'package:flutter/src/animation/animations.dart': Failed assertion: line
376 pos 15: 'parent != null': is not true.
I/chatty ( 5598): uid=10085(com.example.gam3ity_aa) 1.ui identical 10
lines
I/flutter ( 5598): Another exception was thrown:
'package:flutter/src/animation/animations.dart': Failed assertion: line
376 pos 15: 'parent != null': is not true.
I/flutter ( 5598): Another exception was thrown:
'package:flutter/src/animation/animations.dart': Failed assertion: line
376 pos 15: 'parent != null': is not true.
I/chatty ( 5598): uid=10085(com.example.gam3ity_aa) 1.ui identical 8
lines
I/flutter ( 5598): Another exception was thrown:
'package:flutter/src/animation/animations.dart': Failed assertion: line
376
pos 15: 'parent != null': is not true.
`
AnimationController
?如果是,能否展示一下? - Sander Dalby Larsen