ComicWheelPicker<T> class
One value off a turning drum, on ui_core's DesignWheelPicker: the rows roll past a caption band that holds the chosen one. A drag or a fling turns it; Up and Down step it, Page Up and Down by five, Home and End to the ends, and typing jumps to a value's words; a screen reader hears it as an adjustable value.
ComicWheelPicker<int>(label: 'Copies', values: const [1, 2, 3, 4, 5], value: copies, labelOf: (n) => '$n', onChanged: (n) => setState(() => copies = n))
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ComicWheelPicker
Constructors
-
ComicWheelPicker({Key? key, required String label, required List<
T> values, required T value, required String labelOf(T value), ValueChanged<T> ? onChanged, double itemExtent = 44, int visible = 5, FocusNode? focusNode, bool autofocus = false}) -
Creates a ComicWheelPicker. Null
onChangeddisables it.const
Properties
- autofocus → bool
-
Whether the part asks for the focus when it first appears.
final
- focusNode → FocusNode?
-
The caller-owned focus.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemExtent → double
-
A row's height.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
What it picks, for a screen reader.
final
- labelOf → String Function(T value)
-
A value's words.
final
-
onChanged
→ ValueChanged<
T> ? -
Each newly centred value; null disables it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The chosen value (one of values).
final
-
values
→ List<
T> -
The values on the drum, in order.
final
- visible → int
-
How many rows show (odd: one in the band, the rest around it).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ComicWheelPicker< T> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited