Skip to content

Add option to use button to move forward/backward from the carousel.#382

Open
blackmenthor wants to merge 1 commit into
serenader2014:masterfrom
blackmenthor:master
Open

Add option to use button to move forward/backward from the carousel.#382
blackmenthor wants to merge 1 commit into
serenader2014:masterfrom
blackmenthor:master

Conversation

@blackmenthor

Copy link
Copy Markdown

No description provided.

@dhruv1710 dhruv1710 left a comment

Copy link
Copy Markdown

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

Comment thread lib/carousel_slider.dart
);
}

Widget getButtonWrapper({

Copy link
Copy Markdown

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

Comment thread lib/carousel_slider.dart
Curves.easeOut.transform(distortionRatio as double);
}
final double height = widget.options.height ??
MediaQuery.of(context).size.width *

Copy link
Copy Markdown

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

Comment thread lib/carousel_slider.dart
height: distortionValue * height, scale: distortionValue));
} else {
return getCenterWrapper(getEnlargeWrapper(child,
width: distortionValue * MediaQuery.of(context).size.width,

Copy link
Copy Markdown

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