TatweerTextField constructor

const TatweerTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. String? hintText,
  5. String? label,
  6. String? helperText,
  7. String? errorText,
  8. bool enabled = true,
  9. bool readOnly = false,
  10. bool obscureText = false,
  11. TextInputType? keyboardType,
  12. int? maxLines = 1,
  13. int? minLines,
  14. int? maxLength,
  15. IconData? prefixIcon,
  16. IconData? suffixIcon,
  17. VoidCallback? onSuffixIconTap,
  18. ValueChanged<String>? onChanged,
  19. ValueChanged<String>? onSubmitted,
  20. String? validator(
    1. String?
    )?,
  21. List<TextInputFormatter>? inputFormatters,
  22. double? borderRadius,
  23. Color? borderColor,
  24. FocusNode? focusNode,
  25. TextCapitalization textCapitalization = TextCapitalization.none,
  26. bool autofocus = false,
})

Implementation

const TatweerTextField({
  Key? key,
  this.controller,
  this.initialValue,
  this.hintText,
  this.label,
  this.helperText,
  this.errorText,
  this.enabled = true,
  this.readOnly = false,
  this.obscureText = false,
  this.keyboardType,
  this.maxLines = 1,
  this.minLines,
  this.maxLength,
  this.prefixIcon,
  this.suffixIcon,
  this.onSuffixIconTap,
  this.onChanged,
  this.onSubmitted,
  this.validator,
  this.inputFormatters,
  this.borderRadius,
  this.borderColor,
  this.focusNode,
  this.textCapitalization = TextCapitalization.none,
  this.autofocus = false,
}) : super(key: key);