rotating_carousel

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

rotating carousel

A simple package with a carousel widget having web look and feel. It let's you pass any number of widgets(yeah widgets, not just images) to be displayed. It also gives you control over how much of the cards containing your widgets you want to overlap(or not). It's lightweight and doesn't depend on any other packages.
Usage #
The minRatio is the ratio of the width of the smallest card to the width of the largest(i.e middle) card. If we pass a positive overlapRatio then it tells the RotatingCarousel widget how much of each cards' width we want to overlap with its corresponding neighbouring card. But if we instead pass a negative value they will spaced apart with the same value rather than overlap.

RotatingCarousel(
panels: [
...
],
height: 250,
width: 350,
minRatio: 0.9,
overlapRatio: -0.3,
)
copied to clipboard

RotatingCarousel(
panels: [
...
],
height: 250,
width: 350,
minRatio: 0.7,
overlapRatio: 0.7,
)
copied to clipboard

RotatingCarousel(
panels: [
...
],
height: 250,
width: 350,
minRatio: 0.9,
overlapRatio: -0.1,
)
copied to clipboard

RotatingCarousel(
panels: [
...
],
height: 250,
width: 350,
minRatio: 0.9,
overlapRatio: 0.1,
)
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.