|
|
@ -28,6 +28,9 @@ class _HuiXiangBanner extends State<HuiXiangBanner> { |
|
|
|
child: Swiper( |
|
|
|
child: Swiper( |
|
|
|
viewportFraction: 0.88, |
|
|
|
viewportFraction: 0.88, |
|
|
|
scale: 0.93, |
|
|
|
scale: 0.93, |
|
|
|
|
|
|
|
autoplay: true, |
|
|
|
|
|
|
|
duration: 1000, |
|
|
|
|
|
|
|
autoplayDelay: 2000, |
|
|
|
pagination: SwiperPagination( |
|
|
|
pagination: SwiperPagination( |
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
builder: DotSwiperPaginationBuilder( |
|
|
|
builder: DotSwiperPaginationBuilder( |
|
|
@ -48,7 +51,7 @@ class _HuiXiangBanner extends State<HuiXiangBanner> { |
|
|
|
(widget.bannerData != null && position < widget.bannerData.length) |
|
|
|
(widget.bannerData != null && position < widget.bannerData.length) |
|
|
|
? widget.bannerData[position].imgUrl |
|
|
|
? widget.bannerData[position].imgUrl |
|
|
|
: "", |
|
|
|
: "", |
|
|
|
fit: BoxFit.cover, |
|
|
|
fit: BoxFit.fill, |
|
|
|
radius: BorderRadius.circular(8), |
|
|
|
radius: BorderRadius.circular(8), |
|
|
|
errorSrc: "assets/image/default_2_1.webp", |
|
|
|
errorSrc: "assets/image/default_2_1.webp", |
|
|
|
fadeSrc: "assets/image/default_2_1.webp", |
|
|
|
fadeSrc: "assets/image/default_2_1.webp", |
|
|
|