rotating_carousel 0.0.2 copy "rotating_carousel: ^0.0.2" to clipboard
rotating_carousel: ^0.0.2 copied to clipboard

A package for implementing a carousel like look and feel in flutter apps.

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,
)
RotatingCarousel(
    panels: [
    ...
    ],
    height: 250,
    width: 350,
    minRatio: 0.7,
    overlapRatio: 0.7,
)
RotatingCarousel(
    panels: [
    ...
    ],
    height: 250,
    width: 350,
    minRatio: 0.9,
    overlapRatio: -0.1,
)
RotatingCarousel(
    panels: [
    ...
    ],
    height: 250,
    width: 350,
    minRatio: 0.9,
    overlapRatio: 0.1,
)
16
likes
160
pub points
77%
popularity

Publisher

unverified uploader

A package for implementing a carousel like look and feel in flutter apps.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on rotating_carousel