我这个side_cat是一个动画放在代码里就会报错 给我改进后的代码 Widget side_cat return Container 缩小05倍 transform Matrix4identityscale01 child RiveAnimationasset assetscatriv animations Sulamin
尝试将side_cat()方法中的transform属性中的scale值修改为0.5,即从原来的0.1倍放大到0.5倍,代码如下:
Widget side_cat() { return Container( //放大0.5倍 transform: Matrix4.identity()..scale(0.5),
child: RiveAnimation.asset(
'assets/cat.riv',
animations: ['Sulamine'],
controllers: [_controller3],
),
);
}
原文地址: http://www.cveoy.top/t/topic/flYX 著作权归作者所有。请勿转载和采集!