flywheel_carousel library
A free-spinning, arc-shaped carousel for Flutter.
Classes
-
FlywheelCarousel<
T> - A free-spinning, arc-shaped carousel. Items ride the rim of a large invisible wheel. Flicks coast under friction and snap to the nearest item.
- FlywheelItemCard
- Opinionated card layout for FlywheelCarousel. Stacks a leading widget (typically an avatar or icon), a title, an optional subtitle, and a small indicator pill that flips color when selected is true.
- FreewheelPhysics
- Free-spinning physics for the wheel. A flick decelerates under friction and lands on whichever card the momentum carries it to — the harder the flick, the further it spins. Lower dragCoefficient = longer spin.
Typedefs
-
FlywheelItemBuilder<
T> = Widget Function(BuildContext context, T item, bool isSelected)