M3ETextField constructor
const
M3ETextField({
- TextEditingController? controller,
- FocusNode? focusNode,
- String? label,
- String? supportingText,
- String? errorText,
- Widget? leading,
- Widget? trailing,
- M3ETextFieldVariant variant = M3ETextFieldVariant.filled,
- bool obscureText = false,
- bool enabled = true,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - TapRegionCallback? onTapOutside,
- int maxLines = 1,
- Key? key,
M3ETextField.
Implementation
const M3ETextField({
this.controller,
this.focusNode,
this.label,
this.supportingText,
this.errorText,
this.leading,
this.trailing,
this.variant = M3ETextFieldVariant.filled,
this.obscureText = false,
this.enabled = true,
this.keyboardType,
this.textInputAction,
this.onChanged,
this.onSubmitted,
this.onTapOutside,
this.maxLines = 1,
super.key,
});