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

滚动时间越久越卡顿 #297

Open
yanchunlan-ola opened this issue May 8, 2023 · 0 comments
Open

滚动时间越久越卡顿 #297

yanchunlan-ola opened this issue May 8, 2023 · 0 comments

Comments

@yanchunlan-ola
Copy link

hi, 我在滚动控件里面放了一个webView/或者imageView,发现webView/imageView会频繁创建,时间越久就会卡顿,
代码如下:
Swiper(
itemCount: list.length,
itemBuilder: (context, index) {
return WebView(
initialUrl: "https://www.baidu.com/?tn=02003390_25_hao_pg",
javascriptMode: JavascriptMode.unrestricted,
);
},
pagination: SwiperPagination(), //轮播图片底下的指示点
control: SwiperControl(), //左右箭头导航
)

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

1 participant