FastTextField constructor

FastTextField({
  1. String? name,
  2. String? placeholder,
  3. TextEditingController? controller,
  4. Widget? prefix,
  5. Widget? suffix,
  6. FastTextFieldType type = FastTextFieldType.titleSingle,
  7. ValueChanged<String>? onChanged,
  8. TextInputType? keyboardType,
  9. TextStyle style = const TextStyle(color: Color(0xff030303)),
  10. TextStyle hintStyle = const TextStyle(color: Color(0xffDFE0EB)),
  11. bool obscureText = false,
  12. String? labelValue,
  13. EdgeInsetsGeometry padding = EdgeInsets.zero,
  14. FormFieldValidator<String>? validator,
  15. bool autovalidate = false,
  16. Color borderColor = const Color(0xffEBEBEB),
  17. Color backgroundColor = Colors.transparent,
  18. List<TextInputFormatter> inputFormatters = const <TextInputFormatter>[],
  19. bool enable = true,
  20. double titleWidth = 100.0,
  21. double spacing = 10,
  22. int maxLine = 1,
})

Implementation

FastTextField({
  this.name,
  this.placeholder,
  this.controller,
  this.prefix,
  this.suffix,
  this.type = FastTextFieldType.titleSingle,
  this.onChanged,
  this.keyboardType,
  this.style = const TextStyle(color: Color(0xff030303)),
  this.hintStyle = const TextStyle(color: Color(0xffDFE0EB)),
  this.obscureText = false,
  this.labelValue,
  this.padding = EdgeInsets.zero,
  this.validator,
  this.autovalidate = false,
  this.borderColor = const Color(0xffEBEBEB),
  this.backgroundColor = Colors.transparent,
  this.inputFormatters = const <TextInputFormatter>[],
  this.enable = true,
  this.titleWidth = 100.0,
  this.spacing = 10,
  this.maxLine = 1,
});