GlassInput constructor

const GlassInput({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. String? placeholder,
  5. Widget? icon,
  6. ValueChanged<String>? onChanged,
  7. ValueChanged<String>? onSubmitted,
  8. bool enabled = true,
  9. bool obscureText = false,
  10. bool autofocus = false,
  11. TextInputType? keyboardType,
  12. TextInputAction? textInputAction,
  13. bool clearable = false,
  14. double maxWidth = 360,
  15. double height = 40,
  16. bool autocorrect = true,
  17. List<TextInputFormatter>? inputFormatters,
  18. GlassMode mode = GlassMode.auto,
})

Creates a glass text field.

Implementation

const GlassInput({
  super.key,
  this.controller,
  this.focusNode,
  this.placeholder,
  this.icon,
  this.onChanged,
  this.onSubmitted,
  this.enabled = true,
  this.obscureText = false,
  this.autofocus = false,
  this.keyboardType,
  this.textInputAction,
  this.clearable = false,
  this.maxWidth = 360,
  this.height = 40,
  this.autocorrect = true,
  this.inputFormatters,
  this.mode = GlassMode.auto,
});