Closed XiYoung777 closed 1 year ago
可以,像这样吗? PAGView.asset( "assets/pag/anim_page_refresh.pag", width: 42, height: 42, repeatCount: PAGView.REPEAT_COUNT_LOOP, initProgress: 0, autoPlay: true, key: assetPagKey, )
PAGView.asset( "assets/pag/anim_page_refresh.pag", width: 42, height: 42, repeatCount: PAGView.REPEAT_COUNT_LOOP, initProgress: 0, autoPlay: true, key: assetPagKey, )
已支持使用PAGView.asset从Flutter资源路径中加载。
如果是手机本地存储的路径,可以先在外部加载好后,用PAGView.bytes传入二进制。
可以,像这样吗?
PAGView.asset( "assets/pag/anim_page_refresh.pag", width: 42, height: 42, repeatCount: PAGView.REPEAT_COUNT_LOOP, initProgress: 0, autoPlay: true, key: assetPagKey, )