LedgerCommandPalette class
Every act of the app found by typing (New entry, Export October, Go to Budgets): a field on its rule with the search glyph, and under it the acts matching what is typed on the select's raised paper, gathered under their groups' small capitals, each 48 a line with its shortcut's keys at its end. Up and down walk the list, Enter runs the line, Escape closes it; with nothing matching the paper says so, and a screen reader hears how many match. Open it over a page with showLedgerCommandPalette, or stand it on a page (a desk's side search).
LedgerCommandPalette(commands: const [LedgerCommand(label: 'New entry', group: 'Entries', shortcut: 'N')])
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LedgerCommandPalette
Constructors
-
LedgerCommandPalette({required List<
LedgerCommand> commands, ValueChanged<LedgerCommand> ? onSelected, String hint = 'Type an act or a place', bool autofocus = false, Key? key}) -
A palette of
commands.const
Properties
- autofocus → bool
-
Whether it takes focus when it first appears.
final
-
commands
→ List<
LedgerCommand> -
The acts it offers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String
-
The field's words while it is empty.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onSelected
→ ValueChanged<
LedgerCommand> ? -
Takes the chosen act; null runs its own.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
toDesign(
) → DesignCommandPalette - The palette as ui_core's DesignCommandPalette, drawn in Ledger's hand (what showLedgerCommandPalette opens).
-
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