-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to use button to move forward/backward from the carousel. #382
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its handy for beginners using carousel_slider
@@ -219,6 +221,97 @@ class CarouselSliderState extends State<CarouselSlider> | |||
); | |||
} | |||
|
|||
Widget getButtonWrapper({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not return widgets from functions
Curves.easeOut.transform(distortionRatio as double); | ||
} | ||
final double height = widget.options.height ?? | ||
MediaQuery.of(context).size.width * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use MediaQuery.sizeOf(context).width
height: distortionValue * height, scale: distortionValue)); | ||
} else { | ||
return getCenterWrapper(getEnlargeWrapper(child, | ||
width: distortionValue * MediaQuery.of(context).size.width, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use MediaQuery.sizeOf(context).width
No description provided.