YaruSegmentedEntry class

An entry, split into multiple segments, which each represents a selectable editable part of the value. This widget provides keyboard navigation, and numeric value manipulation, using keyboard arrow and tab keys.

See YaruDateTimeEntry for a good demo of how this widget works.

Inheritance

Constructors

YaruSegmentedEntry({Key? key, required List<YaruEntrySegment> segments, required List<String?> delimiters, FocusNode? focusNode, bool? autofocus, YaruSegmentedEntryController? controller, InputDecoration? decoration, FormFieldValidator<String?>? validator, TextInputType? keyboardType, ValueChanged<String>? onChanged, ValueChanged<String?>? onSaved, ValueChanged<String>? onFieldSubmitted})
Creates a YaruSegmentedEntry.
const

Properties

autofocus → bool?
Whether this text field should focus itself if nothing else is already focused.
final
controller → YaruSegmentedEntryController?
A controller for this segmented entry.
final
decoration → InputDecoration?
The decoration to show around the text field.
final
delimiters → List<String?>
A list of string, used to delimit segments. This list length have to be equal to segments.length - 1. The first delimiter will be placed between the first and the second segment, the second between the second and third segments, and so on. You can use a null delimiter if you want two segments to be stuck together.
final
focusNode → FocusNode?
Defines the keyboard focus for this widget.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType?
The type of keyboard to use for editing the text.
final
onChanged → ValueChanged<String>?
Called when the user initiates a change to the TextField's value: when they have inserted or deleted text.
final
onFieldSubmitted → ValueChanged<String>?
final
onSaved → ValueChanged<String?>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → List<YaruEntrySegment>
A list of YaruEntrySegment which represent each selectable and editable part of this entry.
final
validator → FormFieldValidator<String?>?
An optional method that validates an input.
final

Methods

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