NativeTextField constructor
const
NativeTextField({
- Key? key,
- NativeTextFieldController? controller,
- String? hint,
- String? initialText,
- FocusNode? focusNode,
- ValueChanged<
String> ? onChanged, - ValueChanged<
bool> ? onFocusChanged, - ValueChanged<
String> ? onSubmitted, - bool enabled = true,
- double? width,
- double? height,
- bool obscureText = false,
- int? maxLines = 1,
- Color backgroundColor = Colors.black,
- Color textColor = Colors.white,
Implementation
const NativeTextField({
super.key,
this.controller,
this.hint,
this.initialText,
this.focusNode,
this.onChanged,
this.onFocusChanged,
this.onSubmitted,
this.enabled = true,
this.width,
this.height,
this.obscureText = false,
this.maxLines = 1,
this.backgroundColor = Colors.black,
this.textColor = Colors.white,
});