TermosTextField class

Themed text field with dot-grid mesh background, right-edge glow, and reactive starfield on focus. Reads colors / dot grid config / metrics from TermosTheme.

When TermosThemeData.heavyEffectsEnabled is false the field falls back to a simpler bordered container with a dim overlay.

TermosTextField(
  label: 'Command',
  controller: _ctrl,
  hintText: 'ls -la',
)
Inheritance

Constructors

TermosTextField({Key? key, String? label, required TextEditingController controller, FocusNode? focusNode, String? hintText, TermosTextFieldStyle textFieldStyle = TermosTextFieldStyle.code, TextStyle? style, TextStyle? hintStyle, int maxLines = 1, int? minLines, bool autofocus = false, bool enabled = true, bool readOnly = false, bool obscureText = false, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, TextInputAction? textInputAction, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters, TextAlignVertical? textAlignVertical, Widget? prefixIcon, Widget? suffixIcon, BoxConstraints? prefixIconConstraints, BoxConstraints? suffixIconConstraints, EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14), double? height, double? glowCenterY, double labelSpacing = 8})
const

Properties

autofocus → bool
final
contentPadding → EdgeInsetsGeometry
Padding around the inner TextField. Defaults to the original TermosTextField inset so existing call sites keep the same size.
final
controller → TextEditingController
final
enabled → bool
final
focusNode → FocusNode?
final
glowCenterY → double?
Optional override for the focused edge glow / starfield center. When null, the legacy minLines-based placement is used.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Optional fixed height for compact one-line uses such as search bars. Leave null for the field to size itself from contentPadding.
final
hintStyle → TextStyle?
Explicit hint style override.
final
hintText → String?
final
inputFormatters → List<TextInputFormatter>?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType?
final
label → String?
Optional label shown above the field.
final
labelSpacing → double
Vertical gap between label and the text field (default 8).
final
maxLines → int
final
minLines → int?
final
obscureText → bool
final
onChanged → ValueChanged<String>?
final
onSubmitted → ValueChanged<String>?
final
prefixIcon → Widget?
final
prefixIconConstraints → BoxConstraints?
final
readOnly → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → TextStyle?
Explicit text style override.
final
suffixIcon → Widget?
final
suffixIconConstraints → BoxConstraints?
final
textAlignVertical → TextAlignVertical?
final
textFieldStyle → TermosTextFieldStyle
Selects the default text style: TermosTextFieldStyle.code (FiraCode) or TermosTextFieldStyle.prose (Inter). Ignored when style is provided.
final
textInputAction → TextInputAction?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<TermosTextField>
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