Skip to content

Commit 830c3fa

Browse files
committed
Merge branch 'master' of github.com-nixrajput:nixrajput/flutter_carousel_widget
2 parents 766dd5c + f08d0dd commit 830c3fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ FlutterCarousel(
121121
autoPlayAnimationDuration: const Duration(milliseconds: 800),
122122
autoPlayCurve: Curves.fastOutSlowIn,
123123
enlargeCenterPage: false,
124-
carouselController: CarouselController(),
124+
controller: CarouselController(),
125125
onPageChanged: callbackFunction,
126126
pageSnapping: true,
127127
scrollDirection: Axis.horizontal,
@@ -180,7 +180,7 @@ class CarouselDemo extends StatelessWidget {
180180
items: child,
181181
options: CarouselOptions(
182182
autoPlay: false,
183-
carouselController: buttonCarouselController,
183+
controller: buttonCarouselController,
184184
enlargeCenterPage: true,
185185
viewportFraction: 0.9,
186186
aspectRatio: 2.0,

0 commit comments

Comments
 (0)