CarpenterInlineTextEdit class final
Controlled single-line inline text editor with Carpenter field styling and the standard pencil/check interaction.
draft remains caller-owned. The widget owns only the ephemeral Flutter text/focus objects required to render that draft.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CarpenterInlineTextEdit
Constructors
-
CarpenterInlineTextEdit({Key? key, required String value, required String draft, required bool editing, required ValueChanged<
String> onDraftChanged, required VoidCallback? onEditRequested, required VoidCallback? onCommitRequested, required VoidCallback? onCancelRequested, bool committing = false, bool enabled = true, String? errorText, String? semanticLabel, String editSemanticLabel = 'Изменить значение', String commitSemanticLabel = 'Сохранить значение', ControlSize actionSize = ControlSize.xsmall, FieldSize fieldSize = FieldSize.small, String? placeholder}) -
Creates a controlled text-specific inline editor.
const
Properties
- actionSize → ControlSize
-
Semantic size of the pencil/check action.
final
- commitSemanticLabel → String
-
Accessible label for the editing checkmark action.
final
- committing → bool
-
Whether a commit is currently executing.
final
- draft → String
-
Caller-owned text draft displayed while editing.
final
- editing → bool
-
Whether the text field is currently shown.
final
- editSemanticLabel → String
-
Accessible label for the idle pencil action.
final
- enabled → bool
-
Whether editing and commit actions are available.
final
- errorText → String?
-
Optional validation or persistence error for the field.
final
- fieldSize → FieldSize
-
Semantic size of the inline text field.
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 and caller-owned draft restoration.
final
- onCommitRequested → VoidCallback?
-
Requests validation and persistence of draft.
final
-
onDraftChanged
→ ValueChanged<
String> -
Reports every draft change without taking ownership of the draft.
final
- onEditRequested → VoidCallback?
-
Requests that the caller enter edit mode.
final
- placeholder → String?
-
Optional placeholder shown by the editing text field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
Accessible label forwarded to the text input.
final
- value → String
-
Persisted/read-only value displayed outside edit mode.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CarpenterInlineTextEdit> -
Creates ephemeral text-controller and focus state for the controlled draft.
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