我想让这个动画在所有元素的下面重叠显示但是报错了 +7 ms Another exception was thrown RenderPointerListener does not meet its constraints +5 ms Another exception was thrown RenderRepaintBoundary does not meet its constrain
您可以将动画放在Stack的底部,然后在Stack中添加其他元素,这样动画就会在所有元素的下面重叠显示。代码示例:
Stack( children: [ Positioned( bottom: 0, child: Container( //缩小0.5倍 child: RiveAnimation.asset( 'assets/cat.riv', animations: ['Sulamine'], controllers: [_controller3], ), ), ), //其他元素 ], )
原文地址: http://www.cveoy.top/t/topic/flWJ 著作权归作者所有。请勿转载和采集!