Browse Source

Merge remote-tracking branch 'origin/new_revision_app' into new_revision_app

new_revision_app
fmk 2 years ago
parent
commit
b6e922570b
  1. 6
      lib/community/community_view/course_banner.dart
  2. 4
      lib/home/home_view/home_banner.dart
  3. 5
      lib/home/huixiang_view/huixiang_banner.dart
  4. 4
      lib/store/store_order.dart

6
lib/community/community_view/course_banner.dart

@ -38,8 +38,8 @@ class _CourseBanner extends State<CourseBanner> {
viewportFraction: 0.88, viewportFraction: 0.88,
scale: 0.93, scale: 0.93,
autoplay: true, autoplay: true,
duration: 1500, duration: 1000,
autoplayDelay: 2500, autoplayDelay: 2000,
pagination: SwiperPagination( pagination: SwiperPagination(
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
builder: DotSwiperPaginationBuilder( builder: DotSwiperPaginationBuilder(
@ -60,7 +60,7 @@ class _CourseBanner extends State<CourseBanner> {
(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",

4
lib/home/home_view/home_banner.dart

@ -37,8 +37,8 @@ class _HomeBanner extends State<HomeBanner> {
), ),
), ),
autoplay: true, autoplay: true,
duration: 1500, duration: 1000,
autoplayDelay: 2500, autoplayDelay: 2000,
controller: widget.controller, controller: widget.controller,
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
itemBuilder: (context, position) { itemBuilder: (context, position) {

5
lib/home/huixiang_view/huixiang_banner.dart

@ -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",

4
lib/store/store_order.dart

@ -677,8 +677,8 @@ class _StoreOrderPage extends State<StoreOrderPage>
), ),
), ),
autoplay: true, autoplay: true,
duration: 1500, duration: 1000,
autoplayDelay: 2500, autoplayDelay: 2000,
itemBuilder: (context, position) { itemBuilder: (context, position) {
return Container( return Container(
child: MImage( child: MImage(

Loading…
Cancel
Save