AurisSelect<T> class
A custom dropdown matching the intended HUD look the native DropdownMenu
cannot reach (§spec:custom-widgets): a chamfered trigger box showing the
value in monospace with a gold caret that rotates 180° when open, and a
chamfered popup panel (gold-tinted border, amber depth glow) of monospace
rows. Each row is textMid at rest / textBright on hover; the selected
row is bright on a faint gold tint; rows are separated by a 1px divider in
the border color.
The popup is an OverlayPortal dismissed on outside tap; it is keyboard-navigable (up/down to move, enter to select, escape to close). A disabled select (null onChanged) renders at opacity 0.5 with no interaction; the trigger shows a gold keyboard-focus outline when focused (§spec:accessibility). All colors / bevel / glow resolve from the AurisScheme.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AurisSelect
Constructors
-
AurisSelect({Key? key, required List<
AurisSelectOption< options, required T? value, required ValueChanged<T> >T> ? onChanged, String placeholder = 'SELECT', double? width, FocusNode? focusNode}) -
Creates a custom select.
const
Properties
- focusNode → FocusNode?
-
An optional external focus node for the trigger.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChanged
→ ValueChanged<
T> ? -
Called with the chosen value. Null disables the control.
final
-
options
→ List<
AurisSelectOption< T> > -
The selectable options.
final
- placeholder → String
-
Trigger text shown when no value is selected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
The currently selected value, or null for the placeholder.
final
- width → double?
-
Optional fixed trigger width.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AurisSelect< 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.
inherited
-
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