WeInput constructor
WeInput({
- Key? key,
- dynamic label,
- double height = 48,
- String defaultValue = '',
- int maxLines = 1,
- int? maxLength,
- String? hintText,
- FocusNode? focusNode,
- bool showClear = false,
- TextAlign textAlign = TextAlign.start,
- TextInputType textInputType = TextInputType.text,
- bool obscureText = false,
- TextStyle? style,
- bool autofocus = false,
- double labelWidth = 80.0,
- TextInputAction? textInputAction,
- dynamic onChange(
- String value
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted,
Implementation
WeInput(
{this.key,
label,
this.height = 48,
this.defaultValue = '',
this.maxLines = 1,
this.maxLength,
this.hintText,
this.focusNode,
this.footer,
this.showClear = false,
this.textAlign = TextAlign.start,
this.textInputType = TextInputType.text,
this.obscureText = false,
this.style,
this.autofocus = false,
this.labelWidth = 80.0,
this.textInputAction,
this.onChange,
this.onEditingComplete,
this.onSubmitted})
: this.label = toTextWidget(label, 'label'),
super(key: key);