Skip to content
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

希望支持预加载 #41

Open
WosLovesLife opened this issue Jan 14, 2019 · 4 comments
Open

希望支持预加载 #41

WosLovesLife opened this issue Jan 14, 2019 · 4 comments

Comments

@WosLovesLife
Copy link

在使用底层基于PageView的Swiper时, 由于默认PageView只加载一个页面导致Swiper翻页之后才开始构建新页面.
这通常会带来瞬间的闪烁, 即使是通过动画来过渡, 效果也并不理想.
如果能将 PageView 中 ViewportcacheExtent属性注释掉就能够让PageView同时加载两个页面, 从而解决这个问题.
希望作者能够留意这一问题, 最好能够加入允许提前缓存的机制. 感谢.

@WosLovesLife
Copy link
Author

另: 因为直接修改cacheExtent比较麻烦, 所以我现在用的解决办法是 设置Swiper的viewportFraction: 0.99999

@congni congni mentioned this issue Feb 20, 2019
@VenusCao
Copy link

VenusCao commented Apr 9, 2019

能缓存多个页面吗?我有4个页面不想每次都从新加载

@goodxianping
Copy link

另: 因为直接修改cacheExtent比较麻烦, 所以我现在用的解决办法是 设置Swiper的viewportFraction: 0.99999

这样写,还是闪现了一瞬间的白色,你有没有根本解决方法哈?

@jcleng
Copy link

jcleng commented Aug 22, 2020

viewportFraction: 0.99999 确实还是一瞬间的白色 没有啥子好办法吗?
ps: 目前只能在loadingBuilder加一个菊花效果了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants