Flutter中使用Banner 图 发表于 2019-04-10 分类于 Flutter 阅读次数: 实现效果 首先导入flutter_swiper插件:12dependencies: flutter_swiper: ^1.1.6 配置文件的链接地址 使用swiper插件需要在使用的dart页面添加: 1import 'package:flutter_swiper/flutter_swiper.dart'; 然后才能在页面中使用轮播插件: 123456789body: new Swiper( itemBuilder: (BuildContext context,int index){ return new Image.network("http://via.placeholder.com/350x150",fit: BoxFit.fill,); }, itemCount: 3, pagination: new SwiperPagination(), control: new SwiperControl(), ), );