CustomTextField class
This is the custom text field with basic design that you can use directly
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomTextField
Constructors
-
CustomTextField.new({Key? key, required TextEditingController controller, required String hintText, double? width, Color? cursorColor, bool isCollapsed = false, BoxBorder? border, List<
TextInputFormatter> ? inputFormatters, TextInputAction? textInputAction, double? contentPaddingHorizontal, Iterable<String> ? autofillHints, Color? borderColor, BoxConstraints? prefixIconConstraints, BoxConstraints? suffixIconConstraints, int? maxLines, String? validator(String?)?, int? maxLength, dynamic onSaved(String?)?, double? fontSize, Color? textColor, TextCapitalization textCapitalization = TextCapitalization.none, double? hintTextFontSize, double? headingFontSize, String? headingText, String? subHeadingText, FontWeight? headingFontWeight, double? cursorHeight, bool? autofocus = false, bool readOnly = false, Widget? prefix, bool filled = true, double? contentPaddingVertical, double horizontalPadding = 0, double verticalPadding = 0, bool obscureText = false, Color? fillColor = MyColors.fillColor, Color? bgColor, Color? hintColor, double? borderRadius, TextInputType? keyboardType, dynamic onChanged(String)?, bool enabled = true, Widget? suffix, String? suffixText, Color? focusedBorderColor, String? prefixText, FocusNode? focusNode, bool enableInteractiveSelection = true, dynamic onTap()?, TextAlign textAlign = TextAlign.start, bool? showShadow = false, Color? headingColor, dynamic onTapOutside(PointerDownEvent)?, dynamic onFieldSubmitted(String)?, dynamic onEditingComplete()?}) - this is the constructor of the CustomTextField
Properties
-
autofillHints
→ Iterable<
String> ? -
this will allow text field to autofill hints
final
- autofocus → bool?
-
this is the autofocus of the custom text field
final
- bgColor → Color?
-
this is the bgColor of the custom text field
final
- border → BoxBorder?
-
this is the border of the custom text field
final
- borderColor → Color?
-
this is the borderColor of the custom text field
final
- borderRadius → double
-
this is the borderRadius of the custom text field
final
- contentPaddingHorizontal → double?
-
this is the contentPaddingHorizontal of the custom text field
final
- contentPaddingVertical → double?
-
this is the contentPaddingVertical of the custom text field
final
- controller → TextEditingController
-
this is the controller of the custom text field
final
- cursorColor → Color?
-
this is the cursor color of the text field
final
- cursorHeight → double?
-
this is the cursorHeight of the custom text field
final
- enabled → bool
-
this is the enabled of the custom text field
final
- enableInteractiveSelection → bool
-
this is the enableInteractiveSelection of the custom text field
final
- fillColor → Color?
-
this is the fillColor of the custom text field
final
- filled → bool
-
this is the filled of the custom text field
final
- focusedBorderColor → Color?
-
this is the focusedBorderColor of the custom text field
final
- focusNode → FocusNode?
-
this is the focusNode of the custom text field
final
- fontSize → double?
-
this is the fontSize of the custom text field
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headingColor → Color?
-
this is the heading color of the custom text field
final
- headingFontSize → double?
-
this is the headingFontSize of the custom text field
final
- headingFontWeight → FontWeight?
-
this is the headingFontWeight of the custom text field
final
- headingText → String?
-
this is the headingText of the custom text field
final
- hintColor → Color?
-
this is the hintColor of the custom text field
final
- hintText → String
-
this is the hintText of the custom text field
final
- hintTextFontSize → double?
-
this is the hintTextFontSize of the custom text field
final
- horizontalPadding → double
-
this is the horizontalPadding of the custom text field
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
this is the inputFormatters of the custom text field
final
- isCollapsed → bool
-
this is the isCollapsed of the custom text field
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType ↔ TextInputType?
-
this is the keyboardType of the custom text field
getter/setter pair
- maxLength → int?
-
this is the maxLength of the custom text field
final
- maxLines → int?
-
this is the maxLines of the custom text field
final
- obscureText → bool
-
this is the obscureText of the custom text field
final
- onChanged → dynamic Function(String)?
-
this is the onChanged of the custom text field
final
- onEditingComplete → dynamic Function()?
-
this is the onEditingComplete of the custom text field
final
- onFieldSubmitted → dynamic Function(String)?
-
this is the onFieldSubmitted of the custom text field
final
- onSaved → dynamic Function(String?)?
-
this is the onSaved of the custom text field
final
- onTap → dynamic Function()?
-
this is the onTap of the custom text field
final
- onTapOutside → dynamic Function(PointerDownEvent)?
-
this is the onTapOutside of the custom text field
final
- prefix → Widget?
-
this is the prefix of the custom text field
final
- prefixIconConstraints → BoxConstraints?
-
this is the prefixIconConstraints of the custom text field
final
- prefixText → String?
-
this is the prefixText of the custom text field
final
- readOnly → bool
-
this is the readOnly of the custom text field
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showShadow → bool?
-
this is the showShadow of the custom text field
final
- subHeadingText → String?
-
this is the subHeadingText of the custom text field
final
- suffix → Widget?
-
this is the suffix of the custom text field
final
- suffixIconConstraints → BoxConstraints?
-
this is the suffixIconConstraints of the custom text field
final
- suffixText → String?
-
this is the suffixText of the custom text field
final
- textAlign → TextAlign
-
this is the textAlign of the custom text field
final
- textCapitalization → TextCapitalization
-
this is the textCapitalization of the custom text field
final
- textColor → Color?
-
this is the textColor of the custom text field
final
- textInputAction → TextInputAction?
-
this will the the action when the field is submitted
final
- validator → String? Function(String?)?
-
this is the validator of the custom text field
final
- verticalPadding → double
-
this is the verticalPadding of the custom text field
final
- width → double?
-
this is the width of the custom text 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, 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