MiuixTextField constructor

const MiuixTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. ValueChanged<String>? onChanged,
  5. String label = '',
  6. bool useLabelAsPlaceholder = false,
  7. bool enabled = true,
  8. bool readOnly = false,
  9. TextStyle? textStyle,
  10. Widget? leadingIcon,
  11. Widget? trailingIcon,
  12. bool singleLine = false,
  13. int? maxLines,
  14. int? minLines,
  15. MiuixTextFieldColors? colors,
  16. double cornerRadius = MiuixTextFieldDefaults.cornerRadius,
  17. EdgeInsets insideMargin = MiuixTextFieldDefaults.insideMargin,
  18. TextInputType? keyboardType,
  19. TextInputAction? textInputAction,
  20. TextCapitalization textCapitalization = TextCapitalization.none,
  21. ValueChanged<String>? onSubmitted,
  22. bool obscureText = false,
  23. Color? cursorColor,
  24. bool autofocus = false,
})

Implementation

const MiuixTextField({
  super.key,
  this.controller,
  this.focusNode,
  this.onChanged,
  this.label = '',
  this.useLabelAsPlaceholder = false,
  this.enabled = true,
  this.readOnly = false,
  this.textStyle,
  this.leadingIcon,
  this.trailingIcon,
  this.singleLine = false,
  this.maxLines,
  this.minLines,
  this.colors,
  this.cornerRadius = MiuixTextFieldDefaults.cornerRadius,
  this.insideMargin = MiuixTextFieldDefaults.insideMargin,
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.onSubmitted,
  this.obscureText = false,
  this.cursorColor,
  this.autofocus = false,
});