LedgerSearchEntry class

The way into a search: the search field drawn as a link, its glyph and hint in a round of the raised paper that opens the search page when pressed (onTap), and with onFilterPressed a square beside it that opens the filters, carrying the green count of those in force (filterCount). It takes no words itself; the page it opens does. One a page, over its first section. Says its semanticLabel (the placeholder by default) as a link, and the filter by filterLabel and how many are in force.

LedgerSearchEntry(hint: 'Search entries', onTap: () => open('/search'), onFilterPressed: openFilters, filterCount: 2)
Inheritance

Constructors

LedgerSearchEntry({required VoidCallback onTap, String? hint, String? semanticLabel, VoidCallback? onFilterPressed, String filterLabel = 'Filters', int filterCount = 0, FocusNode? focusNode, bool autofocus = false, Key? key})
The way into a search, worded hint.
const

Properties

autofocus → bool
Whether the entry takes focus when it first appears.
final
filterCount → int
How many filters are in force; a green mark shows when above zero.
final
filterLabel → String
What a screen reader says the filter is.
final
focusNode → FocusNode?
The entry's focus; null keeps one of its own. The caller disposes the node it gives.
final
hashCode → int
The hash code for this object.
no setterinherited
hint → String?
The words on the link (Search transactions); null is the shared words' Search, as on a LedgerSearchField.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onFilterPressed → VoidCallback?
Opens the filters; the square is left out without it.
final
onTap → VoidCallback
Opens the search.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader says the link is; null says the hint.
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