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. TextAlignVertical? textAlignVertical,
  21. Widget? prefixIcon,
  22. Widget? suffixIcon,
  23. BoxConstraints? prefixIconConstraints,
  24. BoxConstraints? suffixIconConstraints,
  25. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14),
  26. double? height,
  27. double? glowCenterY,
  28. 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.textAlignVertical,
  this.prefixIcon,
  this.suffixIcon,
  this.prefixIconConstraints,
  this.suffixIconConstraints,
  this.contentPadding = const EdgeInsets.symmetric(
    horizontal: 20,
    vertical: 14,
  ),
  this.height,
  this.glowCenterY,
  this.labelSpacing = 8,
});