DNTextField constructor

const DNTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. TextInputType? keyboardType,
  5. bool readOnly = false,
  6. bool disabled = false,
  7. bool autoFocus = false,
  8. void onChanged(
    1. String
    )?,
  9. int? minLines,
  10. int? maxLines = 1,
  11. int? maxLength,
  12. bool obscureText = false,
  13. String? hintText,
  14. FocusNode? focusNode,
  15. void onFieldSubmitted(
    1. String
    )?,
  16. List<TextInputFormatter>? inputFormatters,
  17. String? validator(
    1. String?
    )?,
  18. Iterable<String>? autofillHints,
  19. TextInputAction? textInputAction,
  20. EdgeInsets? contentPadding,
  21. BoxDecoration? decoration,
  22. Color? backgroundColor,
  23. BorderRadius? borderRadius,
  24. double? fontSize,
  25. bool password = false,
  26. Widget? icon,
  27. TextAlign textAlign = TextAlign.start,
  28. Duration debounceTime = const Duration(milliseconds: 0),
  29. void onTap()?,
})

입력 동작, 상태, 외형과 이벤트 지연 시간을 설정한다.

Implementation

const DNTextField({
  super.key,
  this.controller,
  this.initialValue,
  this.keyboardType,
  this.readOnly = false,
  this.disabled = false,
  this.autoFocus = false,
  this.onChanged,
  this.minLines,
  this.maxLines = 1,
  this.maxLength,
  this.obscureText = false,
  this.hintText,
  this.focusNode,
  this.onFieldSubmitted,
  this.inputFormatters,
  this.validator,
  this.autofillHints,
  this.textInputAction,
  this.contentPadding,
  this.decoration,
  this.backgroundColor,
  this.borderRadius,
  this.fontSize,
  this.password = false,
  this.icon,
  this.textAlign = TextAlign.start,
  this.debounceTime = const Duration(milliseconds: 0),
  this.onTap,
});