MiuixTextField constructor
const
MiuixTextField({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- ValueChanged<
String> ? onChanged, - String label = '',
- bool useLabelAsPlaceholder = false,
- bool enabled = true,
- bool readOnly = false,
- TextStyle? textStyle,
- Widget? leadingIcon,
- Widget? trailingIcon,
- bool singleLine = false,
- int? maxLines,
- int? minLines,
- MiuixTextFieldColors? colors,
- double cornerRadius = MiuixTextFieldDefaults.cornerRadius,
- EdgeInsets insideMargin = MiuixTextFieldDefaults.insideMargin,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- ValueChanged<
String> ? onSubmitted, - bool obscureText = false,
- Color? cursorColor,
- 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,
});