GlassInput constructor
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? placeholder,
- Widget? icon,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - bool enabled = true,
- bool obscureText = false,
- bool autofocus = false,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- bool clearable = false,
- double maxWidth = 360,
- double height = 40,
- bool autocorrect = true,
- List<
TextInputFormatter> ? inputFormatters, - 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,
});