flutter_swiper
flutter_swiper copied to clipboard
The best swiper for flutter , with multiple layouts, infinite loop. Compatible with Android & iOS.
void _onIndexChanged(int index) { setState(() { _activeIndex = index; });
`@override Widget build(BuildContext context) { return Container( height: 132, // 轮播图插件 child: Swiper( itemCount: bannerList.length, autoplay: true, itemBuilder: (BuildContext context, int index) { if (bannerList.length == 0) { return null;...
flutter_swiper: ^1.1.6
希望支持预加载
在使用底层基于PageView的Swiper时, 由于默认PageView只加载一个页面导致Swiper翻页之后才开始构建新页面. 这通常会带来瞬间的闪烁, 即使是通过动画来过渡, 效果也并不理想. 如果能将 PageView 中 `Viewport` 的 `cacheExtent`属性注释掉就能够让PageView同时加载两个页面, 从而解决这个问题. 希望作者能够留意这一问题, 最好能够加入允许提前缓存的机制. 感谢.
is it possible to get the scroll direction like( left or right )
new Swiper( itemBuilder: (BuildContext context, int index) { return new Image.network( "http://via.placeholder.com/288x188", fit: BoxFit.fill, ); }, itemCount: 10, viewportFraction: 0.8, scale: 0.9, )
hello, i want to increase or decrease the space between the items of swiper and i don't know how to do it, please help
autoplay为true时, 手动设置duration以后 自动滚动的动画效果就没有了 flutter_swiper版本号:1.1.6
I need to do exactly the opposite. I need the first item to be on the top. When I use controller to arrange controls behaves opposite. Right swipe and right...