KTextField class

Inheritance

Constructors

KTextField({Key? key, Widget? leftWidget, Widget? rightWidget, String? placeholder, List<TextInputFormatter>? inputFormatters, FocusNode? focusNode, TextEditingController? editingController, double borderWidth = 0.5, double fontSize = 16, double? borderRadius, double? borderRadiusTL, double? borderRadiusTR, double? borderRadiusBL, double? borderRadiusBR, FontWeight? fontWeight, Color titleColor = const Color(0xff000000), InputBorder? enableInputBorderWidget, InputBorder? disabledInputBorderWidget, InputBorder? focusedInputBorderWidget, TextInputType? keyboardType, Color enabledBorder = const Color(0xff000000), Color? disabledBorderColor, Brightness keyboardAppearance = Brightness.light, bool filled = true, Color fillColor = const Color(0xffFFFFFF), double? contentPadding, double? contentPaddL, double? contentPaddR, double? contentPaddB, double? contentPaddT, Color? focusedBorderColor, Color? placeholderColor, dynamic callBack(String)?})

Properties

borderRadius ↔ double?
边框宽度 边框圆角,默认无圆角
getter/setter pair
borderRadiusBL ↔ double?
边框右上圆角
getter/setter pair
borderRadiusBR ↔ double?
边框左下圆角
getter/setter pair
borderRadiusTL ↔ double?
边框圆角
getter/setter pair
borderRadiusTR ↔ double?
边框左上圆角
getter/setter pair
borderWidth ↔ double
getter/setter pair
callBack ↔ dynamic Function(String)?
getter/setter pair
contentPaddB ↔ double?
getter/setter pair
contentPadding ↔ double?
输入文本格式化 文本边距,默认左边距等于右边距,上边距等于下边距
getter/setter pair
contentPaddL ↔ double?
getter/setter pair
contentPaddR ↔ double?
getter/setter pair
contentPaddT ↔ double?
getter/setter pair
disabledBorderColor ↔ Color?
getter/setter pair
disabledInputBorderWidget ↔ InputBorder?
getter/setter pair
editingController ↔ TextEditingController?
getter/setter pair
enabledBorder ↔ Color
getter/setter pair
enableInputBorderWidget ↔ InputBorder?
边框右下圆角
getter/setter pair
fillColor ↔ Color
getter/setter pair
filled ↔ bool
键盘主体颜色
getter/setter pair
focusedBorderColor ↔ Color?
getter/setter pair
focusedInputBorderWidget ↔ InputBorder?
getter/setter pair
focusNode ↔ FocusNode?
getter/setter pair
fontSize ↔ double
提示文本颜色
getter/setter pair
fontWeight ↔ FontWeight?
文字大小
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
inputFormatters ↔ List<TextInputFormatter>?
文本字体宽度
getter/setter pair
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardAppearance ↔ Brightness
getter/setter pair
keyboardType ↔ TextInputType?
getter/setter pair
leftWidget ↔ Widget?
提示文本
getter/setter pair
placeholder ↔ String?
getter/setter pair
placeholderColor ↔ Color?
文本颜色
getter/setter pair
rightWidget ↔ Widget?
左边icon
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
titleColor ↔ Color
右边icon
getter/setter pair

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