NeumorphicNumberField class

A number you type or step: two round keys and the figure between them in a groove as tall as their faces, the figure in the title's tabular figures and its unit after it.

On ui_core's DesignNumberField. The figure is the one tab stop and takes typing, in the reader's digits and separators, taken on Enter or as the focus leaves; Up and Down step it, Page Up and Page Down ten steps. A key steps once on a press and repeats while held, and goes out of use at its bound (min, max). A screen reader hears one field with the next and previous values.

NeumorphicNumberField(value: 2, min: 1, unit: 'people', onChanged: (value) {})
Inheritance

Constructors

NeumorphicNumberField({Key? key, required double? value, required ValueChanged<double?>? onChanged, double? min, double? max, double step = 1, String? unit, String? note, String? label, FocusNode? focusNode, bool autofocus = false, NeumorphicStyle? style})
Creates a NeumorphicNumberField.
const

Properties

autofocus → bool
Whether the figure takes focus when it first shows.
final
focusNode → FocusNode?
The figure's focus; null, its own.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
What a screen reader calls the field; null, the unit.
final
max → double?
The greatest number; its key goes out of use there. Null, none.
final
min → double?
The least number; its key goes out of use there. Null, none.
final
note → String?
Supporting text displayed with the primary content.
final
onChanged → ValueChanged<double?>?
Called with the number as it is taken (a step, Enter, the focus leaving), or null when the field is emptied; null puts the whole field out of use.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
step → double
What a key or an arrow moves the number by: whole numbers by default.
final
style → NeumorphicStyle?
Key faces and the central value, before the stepper component theme.
final
unit → String?
A unit displayed under the figure; read out as the field's name when there is no label.
final
value → double?
The number shown; null, an empty field.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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