fortune_wheel library
Classes
- ArrowPin
- Custom arrow pin widget that looks like a classic arrow pointer. You can specify the direction the arrow points (clockwise from right, in radians).
- BorderDotsConfiguration
- Configuration for dots on the wheel border
- CenterIndicatorConfiguration
- Configuration for center indicator
- CirclePreferences
- Preferences for the outer circle of the wheel
- FortuneWheel
- Main Fortune Wheel widget with advanced animation and backend integration
- FortuneWheelState
- State for FortuneWheel - exposed to allow external control
- ImageContent
- Image content with positioning and sizing preferences
- LineContent
- Line content for decorative lines
- PinConfiguration
- Configuration for the pin/pointer indicator
- Slice
- Represents a single slice/segment of the fortune wheel
- SliceBackgroundColors
- Background color patterns for slices
- SliceContent
- Base class for all content types that can be displayed in a wheel slice
- SlicePreferences
- Preferences for how slices are drawn
- TextContent
- Text content with styling preferences
- TriangleArrowPin
- Triangle arrow pin widget - simpler design, direction can be customized
- WheelConfiguration
- Main configuration for the fortune wheel
- WheelMath
- Utility class for wheel-related mathematical calculations
Enums
- ColorPattern
- Color pattern types
- LineType
- Line type options
- PinPosition
- Position of the pin relative to the wheel
- SliceTextMode
- Text rendering mode for handling small slices
- TextOrientation
- Text orientation options
- WheelStartPosition
- Start position of the wheel
Extensions
- PinPositionExtension on PinPosition
- Extension to get angle offset for pin position
- WheelStartPositionExtension on WheelStartPosition
- Extension to convert start position to radians
Typedefs
- ArrowDirection = double
- The direction for the arrow pin to point in radians.
- CollisionCallback = void Function(double? progress)
- Callback for collision events with progress (0.0 to 1.0)
- SliceCallback = void Function(int index)
- Callback for slice selection
- SpinCallback = void Function()
- Callback for spin events