|
@@ -74,24 +74,24 @@ class CarouselOption {
|
|
|
|
|
|
CarouselOption(
|
|
|
{this.height,
|
|
|
- this.aspectRatio: 16 / 9,
|
|
|
- this.viewportFraction: 0.8,
|
|
|
- this.initIndex: 0,
|
|
|
- this.isEnableLoop: true,
|
|
|
- this.isEnableReverse: false,
|
|
|
- this.autoPlay: true,
|
|
|
- this.autoPlayInterval: const Duration(seconds: 4),
|
|
|
- this.autoPlayAnimationDuration: const Duration(milliseconds: 800),
|
|
|
- this.autoPlayCurve: Curves.fastOutSlowIn,
|
|
|
+ this.aspectRatio = 16 / 9,
|
|
|
+ this.viewportFraction = 0.8,
|
|
|
+ this.initIndex = 0,
|
|
|
+ this.isEnableLoop = true,
|
|
|
+ this.isEnableReverse = false,
|
|
|
+ this.autoPlay = true,
|
|
|
+ this.autoPlayInterval = const Duration(seconds: 4),
|
|
|
+ this.autoPlayAnimationDuration = const Duration(milliseconds: 800),
|
|
|
+ this.autoPlayCurve = Curves.fastOutSlowIn,
|
|
|
this.isEnableLargeCenterPage = false,
|
|
|
this.onPageChanged,
|
|
|
this.onScrolled,
|
|
|
this.scrollPhysics,
|
|
|
- this.scrollDirection: Axis.horizontal,
|
|
|
- this.pauseAutoPlayOnTouch: true,
|
|
|
- this.pauseAutoPlayOnManualNavigate: true,
|
|
|
- this.pauseAutoPlayInFiniteScroll: false,
|
|
|
+ this.scrollDirection = Axis.horizontal,
|
|
|
+ this.pauseAutoPlayOnTouch = true,
|
|
|
+ this.pauseAutoPlayOnManualNavigate = true,
|
|
|
+ this.pauseAutoPlayInFiniteScroll = false,
|
|
|
this.pageViewKey,
|
|
|
- this.enlargeStrategy: CenterPageEnlargeStrategy.scale,
|
|
|
- this.disableCenter: false});
|
|
|
+ this.enlargeStrategy = CenterPageEnlargeStrategy.scale,
|
|
|
+ this.disableCenter = false});
|
|
|
}
|