NiceTextInput constructor

const NiceTextInput({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? label,
  4. String? hint,
  5. String? errorText,
  6. bool enabled = true,
  7. bool readOnly = false,
  8. bool obscureText = false,
  9. int? maxLines = 1,
  10. int? maxLength,
  11. Widget? prefixIcon,
  12. Widget? suffixIcon,
  13. ValueChanged<String>? onChanged,
  14. ValueChanged<String>? onSubmitted,
  15. TextInputType? keyboardType,
  16. bool autofocus = false,
  17. FocusNode? focusNode,
})

Implementation

const NiceTextInput({
  super.key,
  this.controller,
  this.label,
  this.hint,
  this.errorText,
  this.enabled = true,
  this.readOnly = false,
  this.obscureText = false,
  this.maxLines = 1,
  this.maxLength,
  this.prefixIcon,
  this.suffixIcon,
  this.onChanged,
  this.onSubmitted,
  this.keyboardType,
  this.autofocus = false,
  this.focusNode,
});