CarpenterInlineEdit class final

Controlled inline-edit chrome shared by table cells, definition lists, and other structured-value surfaces.

Carpenter owns focus/keyboard/action presentation while the caller owns the meaningful edit state and persistence. The idle pencil becomes explicit cancel/save actions while editing; Enter commits and Escape cancels by default.

Inheritance

Constructors

CarpenterInlineEdit({Key? key, required bool editing, required Widget value, required Widget editor, required VoidCallback? onEditRequested, required VoidCallback? onCommitRequested, required VoidCallback? onCancelRequested, bool committing = false, bool enabled = true, bool commitOnEnter = true, String? errorText, String editSemanticLabel = 'Изменить значение', String commitSemanticLabel = 'Сохранить значение', ControlSize actionSize = ControlSize.xsmall})
Creates controlled inline-edit chrome around value and editor.
const

Properties

actionSize → ControlSize
Semantic size of the pencil/check action.
final
commitOnEnter → bool
Whether Enter should request commit while editing.
final
commitSemanticLabel → String
Accessible label for the editing checkmark action.
final
committing → bool
Whether a commit is currently executing.
final
editing → bool
Whether the caller currently exposes editor instead of value.
final
editor → Widget
Editing control shown when editing is true.
final
editSemanticLabel → String
Accessible label for the idle pencil action.
final
enabled → bool
Whether edit and commit actions are available.
final
errorText → String?
Optional validation or persistence error shown below the value/editor.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCancelRequested → VoidCallback?
Requests cancellation of the current caller-owned draft.
final
onCommitRequested → VoidCallback?
Requests validation and persistence of the caller-owned draft.
final
onEditRequested → VoidCallback?
Requests that the caller enter edit mode.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Widget
Read-only presentation shown when editing is false.
final

Methods

build(BuildContext context) → Widget
Builds the controlled value/editor row and keyboard actions.
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