PrimaryTextField class

Cupertino-styled input field with Material-themed borders and validation UI.

Inheritance

Constructors

PrimaryTextField({Key? key, required String placeholder, TextEditingController? controller, TextInputType? keyboardType, GestureTapCallback? onTap, ValueChanged<String>? onChanged, VoidCallback? onEditingComplete, bool readOnly = false, FocusNode? focusNode, int? minLines, int? maxLines, FormFieldValidator<String>? validator, bool isObscure = false, Widget? trailing, double? borderRadius, Color? focusBorderColor, double? focusBorderWidth})
Creates a configurable primary text field.
const

Properties

borderRadius double?
Border radius value for the container.
final
controller TextEditingController?
Optional controller used to read/write the current value.
final
focusBorderColor Color?
Optional focused border color override.
final
focusBorderWidth double?
Optional focused border width override.
final
focusNode FocusNode?
Focus node used to control and observe focus state.
final
hashCode int
The hash code for this object.
no setterinherited
isObscure bool
Whether entered text is obscured.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
Keyboard type used by the platform IME.
final
maxLines int?
Maximum number of visible lines.
final
minLines int?
Minimum number of visible lines.
final
onChanged ValueChanged<String>?
Value change callback.
final
onEditingComplete VoidCallback?
Callback fired when editing completes.
final
onTap VoidCallback?
Tap callback for the inner text field.
final
placeholder String
Placeholder text rendered when the field is empty.
final
readOnly bool
Whether this field is read-only.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailing Widget?
Optional trailing widget rendered inside the text field.
final
validator FormFieldValidator<String>?
Validator used by the wrapping FormField.
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
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