discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

DocumentToolbar class

The toolbar at the left of the top bar (spec 12a D7): one icon button per command of the table (D6), keyed toolbar-<id>, with the command's tooltip, disabled while the command is. The file commands come first, then a gap, then Undo and Redo. A bare shell has no file commands and shows Undo and Redo only. DocumentToolbar.groups lays out any run of groups the same way (host embedding API spec C-2): a gap between two groups that both show a button.

It never takes focus (ExcludeFocus, as the tool palette), so the canvas keeps it and the shortcuts keep working after a click here.

It sits inside a TextFieldTapRegion (spec 12a D2, T-1): a press on it is not a tap outside an open text entry, which would otherwise lose its focus -- and cancel -- on pointer down, before the button's onPressed. The command's settle then commits the entry for the button exactly as for the key.

Inheritance

Constructors

DocumentToolbar({Key? key, required List<ShellCommand> fileCommands, required List<ShellCommand> editCommands})
const
DocumentToolbar.groups({Key? key, required List<List<ShellCommand>> groups})
The buttons of groups, in order, with a groupGap between two non-empty groups (spec C-2): today's toolbar is the two groups [fileCommands, editCommands].
const

Properties

editCommands → List<ShellCommand>
final
fileCommands → List<ShellCommand>
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
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.
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

Constants

groupGap → const double
The gap between the file group and Undo/Redo.