ScrollPickerDecoration class

Constructors

ScrollPickerDecoration({Widget scrollItemBuilder(BuildContext context, int index, dynamic value)?, Widget? highlightWidget, TextStyle? scrollItemTextStyle, int numberOfVisibleItems = 5, double itemHeight = 30, double diameterRatio = 2.0, double perspective = 0.002, double overAndUnderCenterOpacity = 1.0, double offAxisFraction = 0.0, bool useMagnifier = false, double magnification = 1.0, double squeeze = 1.0, bool renderChildrenOutsideViewport = false})
const

Properties

diameterRatio → double
A ratio between the diameter of the cylinder and the viewport's size in the main axis.
final
hashCode → int
The hash code for this object.
no setterinherited
highlightWidget → Widget?
Override the standard highlight widget. (Grey container which is placed behind the selected item).
final
itemHeight → double
Height of each item in the scrollwheel. Chaging this changes the height of the widget.
final
magnification → double
The zoomed-in rate of the magnifier, if it is used.
final
numberOfVisibleItems → int
Amount of visible items in the scroll wheel. Changing this changes the height of the widget.
final
offAxisFraction → double
How much the wheel is horizontally off-center, as a fraction of its width. This property creates the visual effect of looking at a vertical wheel from its side where its vanishing points at the edge curves to one side instead of looking at the wheel head-on.
final
overAndUnderCenterOpacity → double
The opacity value that will be applied to the wheel that appears below and above the magnifier.
final
perspective → double
Size of each child in the main axis. Must not be null and must be positive.
final
renderChildrenOutsideViewport → bool
Whether to paint children inside the viewport only.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollItemBuilder → (Widget Function(BuildContext context, int index, dynamic value)?)
Ability to provide your own builder for the scroll items
final
scrollItemTextStyle → TextStyle?
Textstyle of the scroll items. Will be overridden if the scrollItemBuilder is set.
final
squeeze → double
The angular compactness of the children on the wheel.
final
useMagnifier → bool
Whether to use the magnifier for the center item of the wheel.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited