CTextField class
A stylized text input field.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CTextField
Constructors
- CTextField.bordered({Color? foregroundColor, CFieldDecoration decoration = const CFieldDecoration(), String? validator(String?)?, void onChanged(String)?, void onTap()?, bool? obscureText, bool? readOnly, TextInputType? keyboardType, bool? autocorrect, TextInputAction? textInputAction, FocusNode? focusNode, TextEditingController? controller, String? initialValue, bool? enabled, int? maxLines})
-
Creates a bordered styled text field.
factory
- CTextField.borderedFilled({Color? backgroundColor, Color? foregroundColor, LinearGradient? gradient, CFieldDecoration decoration = const CFieldDecoration(), String? validator(String?)?, void onChanged(String)?, void onTap()?, bool? obscureText, bool? readOnly, TextInputType? keyboardType, bool? autocorrect, TextInputAction? textInputAction, FocusNode? focusNode, TextEditingController? controller, bool? enabled, int? maxLines, String? initialValue})
-
Creates a bordered and filled styled text field.
factory
- CTextField.filled({Color? backgroundColor, Color? foregroundColor, LinearGradient? gradient, CFieldDecoration decoration = const CFieldDecoration(), String? validator(String?)?, void onChanged(String)?, void onTap()?, bool? obscureText, bool? readOnly, TextInputType? keyboardType, bool? autocorrect, TextInputAction? textInputAction, FocusNode? focusNode, TextEditingController? controller, bool? enabled, int? maxLines, String? initialValue})
-
Creates a filled styled text field.
factory
- CTextField.simple({Color? foregroundColor, CFieldDecoration decoration = const CFieldDecoration(), String? validator(String?)?, void onChanged(String)?, void onTap()?, bool? obscureText, bool? readOnly, TextInputType? keyboardType, bool? autocorrect, TextInputAction? textInputAction, FocusNode? focusNode, TextEditingController? controller, String? initialValue, bool? enabled, int? maxLines})
-
Creates a simple styled text field.
factory
Properties
- autocorrect → bool?
-
Indicates whether auto-correction is enabled for the text field.
final
- controller → TextEditingController?
-
Controller for the text field.
final
- decoration → CFieldDecoration
-
Decoration of the field.
final
- enabled → bool?
-
Indicates whether the text field is enabled.
final
- focusNode → FocusNode?
-
Node that controls keyboard focus.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → String?
-
The initial value of the text field.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
The type of keyboard to use for editing the text.
final
- maxLines → int?
-
The maximum number of lines the field can have.
final
- obscureText → bool?
-
Indicates whether the text should be obscured.
final
- onChanged → (void Function(String)?)
-
Function called when the text in the field changes.
final
- onTap → (void Function()?)
-
Function called when the field is tapped.
final
- readOnly → bool?
-
Indicates whether the field is read-only.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CFieldStyle
-
Style of the field.
final
- textInputAction → TextInputAction?
-
Specifies the type of action that will be taken when the user submits the text input.
final
- validator → (String? Function(String?)?)
-
Validator function for the field.
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}) → 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