TextFieldX extension
- on
Methods
-
bold(
) → TextField -
Available on TextField, provided by the TextFieldX extension
粗体 -
border(
InputBorder border) → TextField -
Available on TextField, provided by the TextFieldX extension
-
color(
Color color) → TextField -
Available on TextField, provided by the TextFieldX extension
-
colorInt(
int color) → TextField -
Available on TextField, provided by the TextFieldX extension
-
copyWith(
{Key? key, TextEditingController? controller, FocusNode? focusNode, InputDecoration? decoration = const InputDecoration(), TextInputType? keyboardType, TextInputAction? textInputAction, TextCapitalization? textCapitalization, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextAlignVertical? textAlignVertical, TextDirection? textDirection, bool? readOnly, ToolbarOptions? toolbarOptions, bool? showCursor, bool? autofocus, String? obscuringCharacter, bool? obscureText, bool? autocorrect, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool? enableSuggestions, int? maxLines = 1, int? minLines, bool? expands, int? maxLength, bool? maxLengthEnforced, MaxLengthEnforcement? maxLengthEnforcement, void onChanged(String)?, void onEditingComplete()?, void onSubmitted(String)?, void onAppPrivateCommand(String, Map)?, List< TextInputFormatter> ? inputFormatters, bool? enabled, double? cursorWidth, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, BoxHeightStyle? selectionHeightStyle, BoxWidthStyle? selectionWidthStyle, Brightness? keyboardAppearance, EdgeInsets? scrollPadding, DragStartBehavior? dragStartBehavior, bool? enableInteractiveSelection, TextSelectionControls? selectionControls, void onTap()?, MouseCursor? mouseCursor, Widget? buildCounter(BuildContext, {required int currentLength, required bool isFocused, required int? maxLength})?, ScrollController? scrollController, ScrollPhysics? scrollPhysics, Iterable<String> ? autofillHints, Clip? clipBehavior, String? restorationId, bool? enableIMEPersonalizedLearning}) → TextField -
Available on TextField, provided by the TextFieldX extension
-
fontFamily(
String family) → TextField -
Available on TextField, provided by the TextFieldX extension
字体 配置中先注册family -
fontSize(
double size) → TextField -
Available on TextField, provided by the TextFieldX extension
-
fontWeight(
FontWeight? weight) → TextField -
Available on TextField, provided by the TextFieldX extension
字体粗细、正斜等 -
hint(
String hint) → TextField -
Available on TextField, provided by the TextFieldX extension
set hintText -
hintColor(
Color color) → TextField -
Available on TextField, provided by the TextFieldX extension
-
hintFamily(
String family) → TextField -
Available on TextField, provided by the TextFieldX extension
-
hintSize(
double size) → TextField -
Available on TextField, provided by the TextFieldX extension
-
hintStyle(
TextStyle hintStyle) → TextField -
Available on TextField, provided by the TextFieldX extension
-
hintWeight(
FontWeight weight) → TextField -
Available on TextField, provided by the TextFieldX extension
-
italic(
) → TextField -
Available on TextField, provided by the TextFieldX extension
斜体 -
letterSpacing(
double spacing) → TextField -
Available on TextField, provided by the TextFieldX extension
字母间距,可为负数 -
lineLimit(
int? num) → TextField -
Available on TextField, provided by the TextFieldX extension
-
lineSpacing(
double spacing) → TextField -
Available on TextField, provided by the TextFieldX extension
行间距,倍数 -
noBorder(
) → TextField -
Available on TextField, provided by the TextFieldX extension
无边框 -
noLineLimit(
) → TextField -
Available on TextField, provided by the TextFieldX extension
无行数限制 -
overLine(
{bool active = true, Color? color}) → TextField -
Available on TextField, provided by the TextFieldX extension
上划线 -
singleLine(
) → TextField -
Available on TextField, provided by the TextFieldX extension
-
strikethrough(
{bool active = true, Color? color}) → TextField -
Available on TextField, provided by the TextFieldX extension
删除线 -
textAlignment(
TextAlign align) → TextField -
Available on TextField, provided by the TextFieldX extension
-
underLine(
{bool active = true, Color? color}) → TextField -
Available on TextField, provided by the TextFieldX extension
下划线 -
wordSpacing(
double spacing) → TextField -
Available on TextField, provided by the TextFieldX extension
单词间距,可为负数