SeoTextField class

A Flutter TextField widget that can inject a corresponding HTML input element for SEO when running on the web.

Depending on the type or keyboardType, this will render either an <input> or <textarea> element in the DOM.

Inheritance
Implemented types

Constructors

SeoTextField({Key? key, TextEditingController? controller, String? id, String? placeholder, InputType? type, TextInputType? keyboardType, InputDecoration? decoration, TextStyle? style, int? maxLines, int? minLines, bool obscureText = false})
Creates a SeoTextField widget.
const

Properties

controller TextEditingController?
Controller for managing the text being edited.
final
decoration InputDecoration?
Decoration for the Flutter TextField.
final
effectiveInputType InputType
Determines the effective input type based on type or keyboardType.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
Optional HTML id for the input element.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
Keyboard type for the input (maps to HTML input types when applicable).
final
maxLines int?
Maximum number of lines for multiline input.
final
minLines int?
Minimum number of lines for multiline input.
final
obscureText bool
Whether the text is obscured (e.g., password field).
final
placeholder String?
Placeholder text displayed inside the input when empty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
Text style for the input text.
final
type InputType?
Type of input to render: single-line text or multiline textarea.
final

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
createHtmlElement() WebHTMLElement?
Creates and returns a WebHTMLElement to represent this object in the DOM.
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