BasicTextField constructor

const BasicTextField({
  1. Key? key,
  2. String? label,
  3. String? placeholder,
  4. String? defaultValue,
  5. int? maxLength,
  6. int? maxLines = 1,
  7. int? autoClear,
  8. TextInputType? keyboardType,
  9. dynamic onChanged(
    1. String
    )?,
  10. dynamic onClear()?,
  11. String? validator(
    1. String?
    )?,
  12. bool isPassword = false,
  13. Color? fillColor,
  14. Color? textColor,
  15. Color? labelColor,
  16. Color? borderColor,
  17. Color? focusedBorderColor,
  18. double? borderWidth,
  19. double? borderRadius,
  20. EdgeInsetsGeometry? contentPadding,
  21. BasicTextVariant? labelVariant,
  22. double? textSize,
  23. EdgeInsets? margin,
  24. bool clearText = false,
  25. Icon? prefixIcon,
  26. bool hideCounterText = true,
  27. TextAlign textAlign = TextAlign.start,
})

Implementation

const BasicTextField({
  Key? key,
  this.label,
  this.placeholder,
  this.defaultValue,
  this.maxLength,
  this.maxLines = 1,
  this.autoClear,
  this.keyboardType,
  this.onChanged,
  this.onClear,
  this.validator,
  this.isPassword = false,
  this.fillColor,
  this.textColor,
  this.labelColor,
  this.borderColor,
  this.focusedBorderColor,
  this.borderWidth,
  this.borderRadius,
  this.contentPadding,
  this.labelVariant,
  this.textSize,
  this.margin,
  this.clearText = false,
  this.prefixIcon,
  this.hideCounterText = true,
  this.textAlign = TextAlign.start,
}) : super(key: key);