CommonInputField constructor

CommonInputField({
  1. Key? key,
  2. TextEditingController? controller,
  3. required String hint,
  4. dynamic onChanged(
    1. String
    )?,
  5. String? validator(
    1. String?
    )?,
  6. TextInputType? inputType,
  7. List<TextInputFormatter>? inputFormatter,
  8. double? marginLeft,
  9. double? marginRight,
  10. double? marginTop,
  11. double? marginBottom,
  12. Widget? leading,
  13. Widget? trailing,
  14. TextCapitalization? textCapitalization,
  15. String? errorText,
  16. bool? isEnable,
  17. bool readOnly = false,
  18. RxBool? isShowTrailing,
  19. Color? fillColor,
  20. Color? borderColor,
  21. int? maxLines,
  22. FocusNode? focusNode,
  23. dynamic onFieldSubmitted(
    1. String
    )?,
  24. bool? autoFocus,
  25. OutlineInputBorder? underLineBorder,
  26. EdgeInsets? edgesInsects,
  27. bool? obscure = false,
  28. double? height,
  29. TextInputAction? textInputAction,
  30. int? maxLength,
  31. VoidCallback? onTap,
  32. bool? selectionPoint,
  33. EdgeInsets? margin,
  34. OutlineInputBorder inputBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10.0)), borderSide: BorderSide(color: Colors.grey)),
  35. OutlineInputBorder errorInputBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10.0)), borderSide: BorderSide(color: Colors.red)),
})

Implementation

CommonInputField({
  super.key,
  this.controller,
  required this.hint,
  this.onChanged,
  this.validator,
  this.inputType,
  this.inputFormatter,
  this.marginLeft,
  this.marginRight,
  this.marginTop,
  this.marginBottom,
  this.leading,
  this.trailing,
  this.textCapitalization,
  this.errorText,
  this.isEnable,
  this.readOnly = false,
  this.isShowTrailing,
  this.fillColor,
  this.borderColor,
  this.maxLines,
  this.focusNode,
  this.onFieldSubmitted,
  this.autoFocus,
  this.underLineBorder,
  this.edgesInsects,
  this.obscure = false,
  this.height,
  this.textInputAction,
  this.maxLength,
  this.onTap,
  this.selectionPoint,
  this.margin,

  this.inputBorder = const OutlineInputBorder(
    borderRadius: BorderRadius.all(Radius.circular(10.0)),
    borderSide: BorderSide(color: Colors.grey),
  ),
  this.errorInputBorder = const OutlineInputBorder(
    borderRadius: BorderRadius.all(Radius.circular(10.0)),
    borderSide: BorderSide(color: Colors.red),
  ),
});