SimpleTextInputField constructor
const
SimpleTextInputField({
- Key? key,
- TextEditingController? controller,
- String? hintText,
- TextInputType? keyboardType,
- String? validator()?,
- bool isObscure = false,
- String? errorText,
- void onChanged()?,
- Widget? suffixIcon,
- Widget? prefixIcon,
- Color? fillColor,
- Color? inputTextColor,
- bool showBorder = true,
- Color? borderColor,
- Color? focusedBorderColor,
- Color? errorBorderColor,
- Color? hintTextColor,
- double fontSize = 14,
- FocusNode? focusNode,
- double borderRadius = 16,
- EdgeInsetsGeometry? contentPadding,
- TextStyle? textStyle,
- bool enabled = true,
- FontWeight fontWeight = FontWeight.w600,
- TextAlign textAlign = TextAlign.start,
- double? prefixIconMinWidth,
- double? prefixIconMaxWidth,
- EdgeInsetsGeometry? prefixIconPadding,
- double? suffixIconMinWidth,
- double? suffixIconMaxWidth,
- EdgeInsetsGeometry? suffixIconPadding,
- int? minLines = 1,
- int? maxLines = 1,
- bool readOnly = false,
- String obscuringCharacter = '*',
- Color? cursorColor,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
Implementation
const SimpleTextInputField({
super.key,
this.controller,
this.hintText,
this.keyboardType,
this.validator,
this.isObscure = false,
this.errorText,
this.onChanged,
this.suffixIcon,
this.prefixIcon,
this.fillColor,
this.inputTextColor,
this.showBorder = true,
this.borderColor,
this.focusedBorderColor,
this.errorBorderColor,
this.hintTextColor,
this.fontSize = 14,
this.focusNode,
this.borderRadius = 16,
this.contentPadding,
this.textStyle,
this.enabled = true,
this.fontWeight = FontWeight.w600,
this.textAlign = TextAlign.start,
this.prefixIconMinWidth,
this.prefixIconMaxWidth,
this.prefixIconPadding,
this.suffixIconMinWidth,
this.suffixIconMaxWidth,
this.suffixIconPadding,
this.minLines = 1,
this.maxLines = 1,
this.readOnly = false,
this.obscuringCharacter = '*',
this.cursorColor,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
});