flutter_fortune_wheel library

Visualize random selections with Flutter widgets like the wheel of fortune.

To use, import package:flutter_fortune_wheel/flutter_fortune_wheel.dart.

See also:

Classes

AlternatingStyleStrategy
This strategy renders items in alternating variations of the ThemeData.primaryColor.
CircularPanPhysics
Calculates panned distances by assuming a circular shape.
DirectionalPanPhysics
Calculates panned distances by only considering movements along one axis.
Fortune
Static methods for common tasks when working with FortuneWidgets.
FortuneBar
A fortune bar visualizes a (random) selection process as a horizontal bar divided into uniformly sized boxes, which correspond to the number of items. When spinning, items are moved horizontally for duration.
FortuneCurve
A selection of commonly used curves for animating when the value of FortuneWidget.selected changes.
FortuneIndicator
FortuneItem
A FortuneItem represents a value, which is chosen during a selection process and displayed within a FortuneWidget.
FortuneItemStyle
Represents the style of a single FortuneItem.
FortuneWheel
A fortune wheel visualizes a (random) selection process as a spinning wheel divided into uniformly sized slices, which correspond to the number of items.
FortuneWidget
A FortuneWidget visualizes (random) selection processes by iterating over a list of items before settling on a selected item.
NoPanPhysics
PanAwareBuilder
A widget builder, which is aware of pan gestures and handles them.
PanPhysics
Base class for handling pan events and translating them to travelled distances.
PanState
A class representing the current state of a PanAwareBuilder.
RectangleIndicator
StyleStrategy
Interface for providing common styling to a list of FortuneItems.
TriangleIndicator
UniformStyleStrategy
This strategy renders all items using the same style based on the current ThemeData.

Mixins

DisableAwareStyleStrategy
Mixin to allow style strategies to have a common style for disabled items.