DNTextField constructor
const
DNTextField({
- Key? key,
- TextEditingController? controller,
- String? initialValue,
- TextInputType? keyboardType,
- bool readOnly = false,
- bool disabled = false,
- bool autoFocus = false,
- void onChanged()?,
- int? minLines,
- int? maxLines = 1,
- int? maxLength,
- bool obscureText = false,
- String? hintText,
- FocusNode? focusNode,
- void onFieldSubmitted()?,
- List<
TextInputFormatter> ? inputFormatters, - EdgeInsets? contentPadding,
- BoxDecoration? decoration,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- double? fontSize,
- bool password = false,
- Widget? icon,
- TextAlign textAlign = TextAlign.start,
- Duration debounceTime = const Duration(milliseconds: 0),
- 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,
});