CustomFormField constructor

const CustomFormField({
  1. Key? key,
  2. required FocusNode? fcs,
  3. required TextEditingController ctrl,
  4. String? hintTxt,
  5. Icon? iconDecoration,
  6. void fieldSubmitted(
    1. String
    )?,
  7. String? validator(
    1. String?
    )?,
  8. bool obscuretxt = false,
  9. bool enabled = true,
  10. TextInputAction? txtInputAction,
  11. TextInputType? keyboardType,
  12. Color decorationColor = const Color.fromRGBO(37, 37, 38, 1),
  13. Color fontColor = Colors.white,
  14. double fontSize = 16,
  15. double radius = 20,
  16. Widget? widgetPrefix,
  17. String? prefixText = '',
  18. List<TextInputFormatter>? inputFormatters,
  19. bool autoFocus = false,
  20. int? maxLength,
  21. Color decorationBorderColor = const Color.fromRGBO(37, 37, 38, 1),
  22. void onChage(
    1. String
    )?,
  23. bool hasBorder = true,
  24. String? labelText,
  25. TextStyle? textStyle,
  26. Color lblColor = Colors.black,
  27. double letterSpacing = 1.3,
})

Implementation

const CustomFormField({
  Key? key,
  required this.fcs,
  required this.ctrl,
  this.hintTxt,
  this.iconDecoration,
  this.fieldSubmitted,
  this.validator,
  this.obscuretxt = false,
  this.enabled = true,
  this.txtInputAction,
  this.keyboardType,
  this.decorationColor = const Color.fromRGBO(37, 37, 38, 1),
  this.fontColor = Colors.white,
  this.fontSize = 16,
  this.radius = 20,
  this.widgetPrefix,
  this.prefixText = '',
  this.inputFormatters,
  this.autoFocus = false,
  this.maxLength,
  this.decorationBorderColor = const Color.fromRGBO(37, 37, 38, 1),
  this.onChage,
  this.hasBorder = true,
  this.labelText,
  this.textStyle,
  this.lblColor = Colors.black,
  this.letterSpacing = 1.3,
}) : super(key: key);