ClueCircleTextField constructor
- Key? key,
- bool enabled = true,
- String? initialValue,
- void onChanged(
- String value
- void onEditingComplete()?,
- String? hintText,
- String? errorText,
- int errorMaxLines = 1,
- int? maxLength = 30,
- Widget? suffixIcon,
- List<
TextInputFormatter> ? inputFormatters, - bool obscureText = false,
- bool showCounterText = false,
- bool useErrorText = false,
Creates a ClueCircleTextField.
enabled
determines if the text field is enabled.
initialValue
is the initial text value of the text field.
onChanged
is the callback function when the text changes.
onEditingComplete
is the callback function when editing is complete.
hintText
is the hint text displayed inside the text field.
errorText
is the error message displayed below the text field.
errorMaxLines
is the maximum number of lines for the error text.
maxLength
is the maximum length of the input text.
suffixIcon
is the widget displayed at the end of the text field.
inputFormatters
is a list of text input formatters.
obscureText
determines if the text should be obscured.
showCounterText
determines if the counter text should be shown.
useErrorText
determines if the error text should be used.
Implementation
const ClueCircleTextField({
super.key,
this.enabled = true,
this.initialValue,
this.onChanged,
this.onEditingComplete,
this.hintText,
this.errorText,
this.errorMaxLines = 1,
this.maxLength = 30,
this.suffixIcon,
this.inputFormatters,
this.obscureText = false,
this.showCounterText = false,
this.useErrorText = false,
});