textField method

Widget textField(
  1. String? label,
  2. TextEditingController? controller,
  3. FocusNode focusNode,
  4. BuildContext context, {
  5. bool? enabled,
  6. TextInputType? keyboardType,
  7. TextCapitalization? textCapitalization,
  8. bool? obscure,
  9. TextInputAction? textInputAction,
  10. FocusNode? nextFocusNode,
  11. Widget? suffixIcon,
  12. Widget? prefixIcon,
  13. Color? colorText,
  14. bool? expands,
  15. String? hint,
  16. dynamic onChange(
    1. String
    )?,
  17. dynamic onSubmit(
    1. String
    )?,
  18. int? maxLines,
  19. int? minLines,
  20. int? maxLength,
  21. List<TextInputFormatter>? inputFormatters,
  22. String? error,
  23. String? helpMessage,
  24. bool? showPrefixSeparator = false,
  25. bool? showSuffixSeparator = false,
  26. 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,
  );
}