SimpleTextInputField constructor

const SimpleTextInputField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hintText,
  4. TextInputType? keyboardType,
  5. String? validator(
    1. String?
    )?,
  6. bool isObscure = false,
  7. String? errorText,
  8. void onChanged(
    1. String
    )?,
  9. Widget? suffixIcon,
  10. Widget? prefixIcon,
  11. Color? fillColor,
  12. Color? inputTextColor,
  13. bool showBorder = true,
  14. Color? borderColor,
  15. Color? focusedBorderColor,
  16. Color? errorBorderColor,
  17. Color? hintTextColor,
  18. double fontSize = 14,
  19. FocusNode? focusNode,
  20. double borderRadius = 16,
  21. EdgeInsetsGeometry? contentPadding,
  22. TextStyle? textStyle,
  23. bool enabled = true,
  24. FontWeight fontWeight = FontWeight.w600,
  25. TextAlign textAlign = TextAlign.start,
  26. double? prefixIconMinWidth,
  27. double? prefixIconMaxWidth,
  28. EdgeInsetsGeometry? prefixIconPadding,
  29. double? suffixIconMinWidth,
  30. double? suffixIconMaxWidth,
  31. EdgeInsetsGeometry? suffixIconPadding,
  32. int? minLines = 1,
  33. int? maxLines = 1,
  34. bool readOnly = false,
  35. String obscuringCharacter = '*',
  36. Color? cursorColor,
  37. 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,
});