WeInput constructor

WeInput({
  1. Key? key,
  2. dynamic label,
  3. double height = 48,
  4. String defaultValue = '',
  5. int maxLines = 1,
  6. int? maxLength,
  7. String? hintText,
  8. FocusNode? focusNode,
  9. Widget? footer,
  10. bool showClear = false,
  11. TextAlign textAlign = TextAlign.start,
  12. TextInputType textInputType = TextInputType.text,
  13. bool obscureText = false,
  14. TextStyle? style,
  15. bool autofocus = false,
  16. double labelWidth = 80.0,
  17. TextInputAction? textInputAction,
  18. dynamic onChange(
    1. String value
    )?,
  19. VoidCallback? onEditingComplete,
  20. 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);