Skip to content

Conversation

blackmenthor
Copy link

No description provided.

Copy link

@dhruv1710 dhruv1710 left a 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({

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 *

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,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants