NativeTextField constructor

const NativeTextField({
  1. Key? key,
  2. NativeTextFieldController? controller,
  3. String? hint,
  4. String? initialText,
  5. FocusNode? focusNode,
  6. ValueChanged<String>? onChanged,
  7. ValueChanged<bool>? onFocusChanged,
  8. ValueChanged<String>? onSubmitted,
  9. bool enabled = true,
  10. double? width,
  11. double? height,
  12. bool obscureText = false,
  13. int? maxLines = 1,
  14. Color backgroundColor = Colors.black,
  15. 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,
});