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. EdgeInsets? contentPadding,
  18. BoxDecoration? decoration,
  19. Color? backgroundColor,
  20. BorderRadius? borderRadius,
  21. double? fontSize,
  22. bool password = false,
  23. Widget? icon,
  24. TextAlign textAlign = TextAlign.start,
  25. Duration debounceTime = const Duration(milliseconds: 0),
  26. 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.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,
});