TextField.outlined constructor
TextField.outlined({
- Key? key,
- String? label,
- Widget? labelWidget,
- bool appendColonToLabel = true,
- TextStyle? labelStyle,
- String? hintText,
- FocusNode? focusNode,
- String? errorText,
- bool enabled = true,
- bool readOnly = false,
- Widget? suffix,
- Widget? suffixIcon,
- Widget? prefix,
- Widget? prefixIcon,
- bool obscureText = false,
- BorderRadius? borderRadius,
- TextEditingController? controller,
- List<
InputFeedbackText> ? feedback, - TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters, - TextCapitalization textCapitalization = material.TextCapitalization.none,
- TextAlign textAlign = material.TextAlign.start,
- TextInputAction? textInputAction,
- int? maxLength,
- int? maxLines = 1,
- int? minLines,
- bool? expands,
- TextStyle? textStyle,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - InputDecoration? decoration,
- bool overrideDecoration = false,
- TextAlignVertical? textAlignVertical,
- WrapWidgetBuilder? innerBoxWrapper,
- bool forceErrorStyle = false,
- bool autofocus = false,
- bool enableSuggestions = true,
- Iterable<
String> ? autofillHints,
Convenient factory creating an outlined TextField.
Implementation
factory TextField.outlined({
Key? key,
String? label,
Widget? labelWidget,
bool appendColonToLabel = true,
material.TextStyle? labelStyle,
String? hintText,
FocusNode? focusNode,
String? errorText,
bool enabled = true,
bool readOnly = false,
Widget? suffix,
Widget? suffixIcon,
Widget? prefix,
Widget? prefixIcon,
bool obscureText = false,
BorderRadius? borderRadius,
material.TextEditingController? controller,
List<InputFeedbackText>? feedback,
material.TextInputType? keyboardType,
List<TextInputFormatter>? inputFormatters,
material.TextCapitalization textCapitalization =
material.TextCapitalization.none,
material.TextAlign textAlign = material.TextAlign.start,
material.TextInputAction? textInputAction,
int? maxLength,
int? maxLines = 1,
int? minLines,
bool? expands,
material.TextStyle? textStyle,
ValueChanged<String>? onChanged,
ValueChanged<String>? onSubmitted,
material.InputDecoration? decoration,
bool overrideDecoration = false,
TextAlignVertical? textAlignVertical,
WrapWidgetBuilder? innerBoxWrapper,
bool forceErrorStyle = false,
bool autofocus = false,
bool enableSuggestions = true,
Iterable<String>? autofillHints,
}) {
return TextField(
key: key,
label: label,
labelWidget: labelWidget,
appendColonToLabel: appendColonToLabel,
labelStyle: labelStyle,
hintText: hintText,
focusNode: focusNode,
errorText: errorText,
enabled: enabled,
readOnly: readOnly,
suffix: suffix,
suffixIcon: suffixIcon,
prefix: prefix,
prefixIcon: prefixIcon,
obscureText: obscureText,
filled: false,
borderRadius: borderRadius,
controller: controller,
feedback: feedback,
keyboardType: keyboardType,
inputFormatters: inputFormatters,
textCapitalization: textCapitalization,
textAlign: textAlign,
textInputAction: textInputAction,
maxLength: maxLength,
maxLines: maxLines,
minLines: minLines,
expands: expands,
textStyle: textStyle,
onChanged: onChanged,
onSubmitted: onSubmitted,
decoration: decoration,
overrideDecoration: overrideDecoration,
textAlignVertical: textAlignVertical,
innerBoxWrapper: innerBoxWrapper,
forceErrorStyle: forceErrorStyle,
autofocus: autofocus,
enableSuggestions: enableSuggestions,
autofillHints: autofillHints,
);
}