textField method
Widget
textField(
- String? label,
- TextEditingController? controller,
- FocusNode focusNode,
- BuildContext context, {
- bool? enabled,
- TextInputType? keyboardType,
- TextCapitalization? textCapitalization,
- bool? obscure,
- TextInputAction? textInputAction,
- FocusNode? nextFocusNode,
- Widget? suffixIcon,
- Widget? prefixIcon,
- Color? colorText,
- bool? expands,
- String? hint,
- dynamic onChange()?,
- dynamic onSubmit()?,
- int? maxLines,
- int? minLines,
- int? maxLength,
- List<
TextInputFormatter> ? inputFormatters, - String? error,
- String? helpMessage,
- bool? showPrefixSeparator = false,
- bool? showSuffixSeparator = false,
- Color? bgColor,
Implementation
Widget textField(
String? label,
TextEditingController? controller,
FocusNode focusNode,
BuildContext context, {
bool? enabled,
TextInputType? keyboardType,
TextCapitalization? textCapitalization,
bool? obscure,
TextInputAction? textInputAction,
FocusNode? nextFocusNode,
Widget? suffixIcon,
Widget? prefixIcon,
Color? colorText,
bool? expands,
String? hint,
Function(String)? onChange,
Function(String)? onSubmit,
int? maxLines,
int? minLines,
int? maxLength,
List<TextInputFormatter>? inputFormatters,
String? error,
String? helpMessage,
bool? showPrefixSeparator = false,
bool? showSuffixSeparator = false,
Color? bgColor,
}) {
return CustomTextField(label, controller, focusNode,
enabled: enabled,
keyboardType: keyboardType,
textCapitalization: textCapitalization,
obscure: obscure,
textInputAction: textInputAction,
nextFocusNode: nextFocusNode,
suffixIcon: suffixIcon,
prefixIcon: prefixIcon,
colorText: colorText,
expands: expands,
hint: hint,
onChange: onChange,
onSubmit: onSubmit,
maxLines: maxLines,
minLines: minLines,
maxLength: maxLength,
inputFormatters: inputFormatters,
error: error,
helpMessage: helpMessage,
showPrefixSeparator: showPrefixSeparator,
showSuffixSeparator: showSuffixSeparator,
bgColor: bgColor,
);
}