陈昱

Results 6 comments of 陈昱

已经复现,原因是因为使用Texture来进行渲染时,Android侧的SurfaceTexture宽高如果超出一个界限,会引起Crash,详情可见 https://github.com/flutter/flutter/issues/92397. 所以使用Texture方式渲染时,power_image会有一个渲染宽高上限。对于这样的长图,建议将renderingType指定为renderingTypeExternal,这样可以避免这个问题。

非常感谢分享,官方后续会出一个kotlin和swift的example,以及会在文档里进行相关的配置说明。

https://github.com/alibaba/power_image/blob/main/example/android/app/src/main/java/com/taobao/power_image_example/GlideMultiFrameImage.java 需要继承于FlutterMultiFrameImage,然后按照Example实现其中的接口。 ![image](https://user-images.githubusercontent.com/30322203/173550231-c6facc92-6bb1-4595-b6d5-540966cee573.png) 然后在Loader中返回这个自己实现的MultiFrameImage

implementation 'com.facebook.fresco:animated-drawable:$lastestVersion' 好像需要额外依赖一个库

获取影院列表失败的可以把MainActivity里的initAmap里的locationParse方法参数改成("北京","北京市")