可以,可以使用GestureDetector组件来添加点击事件,代码如下:

GestureDetector( onTap: () { // 点击事件处理逻辑 }, child: Container( // 点击动画 child: RiveAnimation.asset( 'assets/birds.riv', animations: const [ 'Fly2', ], ), ), )

可以给这个加一个点击事件吗 Container 点击动画 child Rive Animat

原文地址: https://www.cveoy.top/t/topic/flyV 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录