StudioSelect<T> class

A select: a glass window showing the chosen setting, a stepper glyph at its end. A press, Down or Up opens the settings under it on glass, the list opening on the chosen one (in view, however long the list); the chosen setting's lamp is lit. Arrows move through the list, a letter goes to the next setting it starts, Enter or Space chooses, Escape closes, and the keyboard comes back to the window. The pointer's row is the keyboard's: a pointer that moves over the list lights the row under it.

A null onChanged disables it. It stands as wide as a text field in the same column.

Reads style's fill, foreground, padding, minimumSize and textStyle, then StudioThemeData.selectStyle.

StudioSelect<String>(label: 'Quality', value: q, items: const [StudioSelectItem(value: 'hi', label: 'High')], onChanged: (v) => setState(() => q = v))
Inheritance

Constructors

StudioSelect({Key? key, required List<StudioSelectItem<T>> items, required T? value, required ValueChanged<T>? onChanged, String? label, String? hint, String? helper, String? error, FocusNode? focusNode, StudioStyle? style})
A select over items, showing value.
const

Properties

error → String?
What is wrong, under it.
final
focusNode → FocusNode?
A focus node given is the caller's, who disposes it: the part never does. Given none, the part makes its own and disposes it.
final
hashCode → int
The hash code for this object.
no setterinherited
helper → String?
A note under it.
final
hint → String?
Shown while nothing is chosen.
final
items → List<StudioSelectItem<T>>
The settings, in order.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
Its label, above it.
final
onChanged → ValueChanged<T>?
Called with the value chosen; null disables the select.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → StudioStyle?
Its style, over StudioThemeData.selectStyle.
final
value → T?
The chosen setting's value; null for none.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<StudioSelect<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