CJClearButtonTextField constructor
const
CJClearButtonTextField({
- Key? key,
- String? text = '',
- TextStyle? style,
- Color? textColor = Colors.black,
- String? placeholder = '请输入',
- Color? placeholderColor,
- bool? allowShowClear = false,
- bool? obscureText,
- List<
TextInputFormatter> ? inputFormatters, - TextInputType? keyboardType,
- TextEditingController? controller,
- TextInputAction? textInputAction,
- FocusNode? focusNode,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted,
Implementation
const CJClearButtonTextField({
Key? key,
this.text = '',
this.style,
this.textColor = Colors.black,
this.placeholder = '请输入',
this.placeholderColor,
this.allowShowClear = false,
this.obscureText,
this.inputFormatters,
this.keyboardType,
this.controller,
this.textInputAction,
this.focusNode,
this.onChanged,
this.onSubmitted,
}) : super(key: key);