-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
轮播时重绘组件的问题很致命 #9
Comments
错误的网络图片资源 你可以在图片加载失败后返回一个新的错误提示图片就行了 有个 errorBuilder 的方法 |
我添加了这个方法,但是没有用,因为它会不停的重绘,不停的去请求错误的资源,然后再渲染为我本地准备好的图片,框架依然会抛出这些错误,并且因为不停地抛错,开发时,监视框架层面的错误抛出不能执行,影响调试。而且,更加致命的是,如果给页面混合了AutomaticKeepAliveClientMixin类,开启状态保持的话,处在首页的情况下,它会一直消耗系统资源。这本身是错误的,应该是加载一次,而不是重复绘制,如果需要重复绘制,应该是由使用者控制何时重新绘制 |
收到。这个月安排排查修改
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: 保锋 ***@***.***>
发送时间: 2021年12月9日 14:56
收件人: lianyagang/flutter_swiper_null_safety ***@***.***>
抄送: Subscribed ***@***.***>
主题: Re: [lianyagang/flutter_swiper_null_safety] 轮播时重绘组件的问题很致命 (Issue #9)
图片
我添加了这个方法,但是没有用,因为它会不停的重绘,不停的去请求错误的资源,然后再渲染为我本地准备好的图片,框架依然会抛出这些错误,并且因为不停地抛错,开发时,监视框架层面的错误抛出不能执行,影响调试。而且,更加致命的是,如果给页面混合了AutomaticKeepAliveClientMixin类,开启状态保持的话,处在首页的情况下,它会一直消耗系统资源。这本身是错误的,应该是加载一次,而不是重复绘制,如果需要重复绘制,应该是由使用者控制何时重新绘制
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
请问作者何时能修复这个问题,我不会修改这个问题😭, |
|
建议使用card_swiper,无缝替换 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果大点的图片会导致轮播的效果割裂,而且如果源是错误的网络图片资源,开了自动开始和循环后会,flutter框架会不停的抛出资源错误,影响调试,pub上面有几个维护至空安全的库都未能解决这个问题
The text was updated successfully, but these errors were encountered: