TextFieldOverlay class
A text field overlay widget for PDF form text fields.
Displays as static text by default, and switches to an editable TextField when tapped. Supports multiline text, read-only mode, max length, and text alignment.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TextFieldOverlay
Constructors
-
TextFieldOverlay({required String value, required ValueChanged<
String> onChanged, required double fontSize, required double fieldHeight, required PdfFormStyle style, Key? key, bool isMultiline = false, bool isReadOnly = false, int? maxLength, PdfTextAlignment alignment = PdfTextAlignment.left, VoidCallback? onFocused}) -
Creates a TextFieldOverlay.
const
Properties
- alignment → PdfTextAlignment
-
The text alignment.
final
- fieldHeight → double
-
The field height, used for padding calculations.
final
- fontSize → double
-
The font size in logical pixels.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMultiline → bool
-
Whether this field supports multiple lines.
final
- isReadOnly → bool
-
Whether this field is read-only.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxLength → int?
-
The maximum number of characters allowed.
final
-
onChanged
→ ValueChanged<
String> -
Called when the text value changes.
final
- onFocused → VoidCallback?
-
Called when the field receives focus.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → PdfFormStyle
-
The style configuration for this field.
final
- value → String
-
The current text value.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TextFieldOverlay> -
Creates the mutable state for this widget at a given location in the tree.
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