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

用Navigator.pushNamed切换到swiper所在页面的时,swiper出现闪烁bug #40

Open
JamesChenX opened this issue Jan 12, 2019 · 0 comments

Comments

@JamesChenX
Copy link

图一:
12 45

图二:
12 46

图二是想要的效果。但是在用Navigator.pushNamed切换到swiper所在页面的时,swiper会先显示图一,然后快速闪烁成图二。
以下是创建swiper的代码:

recommendationSwiper = Container(
height: 140,
child: Swiper(
itemBuilder: _swiperBuilder,
itemCount: 3,
layout: SwiperLayout.DEFAULT,
pagination: new SwiperPagination(
builder: DotSwiperPaginationBuilder(
color: Colors.black54,
activeColor: Colors.white,
)),
control: new SwiperControl(),
autoplayDisableOnInteraction: true,
scrollDirection: Axis.horizontal,
viewportFraction: 0.85,
scale: 0.9,
autoplay: true,
onTap: (index) => print('点击了第$index个'),
));

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