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

flutter_swiper: ^1.0.6里面的点击事件onTap怎么不执行啊.没反应 #17

Closed
ZHLhenry opened this issue Oct 9, 2018 · 3 comments

Comments

@ZHLhenry
Copy link

ZHLhenry commented Oct 9, 2018

class _ClassifyPage extends State {
@OverRide
Widget build(BuildContext context) {
return new Container(
width: MediaQuery
.of(context)
.size
.width,
height: 200.0,
child: new Swiper(
itemBuilder: _swiperBuilder,
itemCount: 2,
pagination: new SwiperPagination(
builder: DotSwiperPaginationBuilder(
color: Colors.white,
activeColor: Colors.red
),
margin: EdgeInsets.all(30.0)
),
control: new SwiperControl(
iconNext: null,
iconPrevious: null,
),
scrollDirection: Axis.horizontal,
autoplay: true,
onTap: (index) => print('点击了第个')
),
);
}

能帮我解答下么?

@jzoom
Copy link
Member

jzoom commented Oct 10, 2018

最新版本修复了1.1.2

@jzoom jzoom closed this as completed in 926dcf8 Oct 10, 2018
@jzoom
Copy link
Member

jzoom commented Oct 10, 2018

目前最新版本是1.1.3

@ZHLhenry
Copy link
Author

哦哦,了解了

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

2 participants