TermosTextField constructor

const TermosTextField({
  1. Key? key,
  2. String? label,
  3. required TextEditingController controller,
  4. FocusNode? focusNode,
  5. String? hintText,
  6. TermosTextFieldStyle textFieldStyle = TermosTextFieldStyle.code,
  7. TextStyle? style,
  8. TextStyle? hintStyle,
  9. int maxLines = 1,
  10. int? minLines,
  11. bool autofocus = false,
  12. bool enabled = true,
  13. bool readOnly = false,
  14. bool obscureText = false,
  15. ValueChanged<String>? onChanged,
  16. ValueChanged<String>? onSubmitted,
  17. TextInputAction? textInputAction,
  18. TextInputType? keyboardType,
  19. List<TextInputFormatter>? inputFormatters,
  20. Widget? suffixIcon,
  21. double labelSpacing = 8,
})

Implementation

const TermosTextField({
  super.key,
  this.label,
  required this.controller,
  this.focusNode,
  this.hintText,
  this.textFieldStyle = TermosTextFieldStyle.code,
  this.style,
  this.hintStyle,
  this.maxLines = 1,
  this.minLines,
  this.autofocus = false,
  this.enabled = true,
  this.readOnly = false,
  this.obscureText = false,
  this.onChanged,
  this.onSubmitted,
  this.textInputAction,
  this.keyboardType,
  this.inputFormatters,
  this.suffixIcon,
  this.labelSpacing = 8,
});