CustomInputField constructor

CustomInputField({
  1. Key? key,
  2. String hintText = '',
  3. double height = 50,
  4. double width = 300,
  5. Color? iconColor,
  6. IconData? icon,
  7. Function? onTap,
  8. Function? onIconTap,
  9. ValueChanged<String>? value,
  10. String initialValue = '',
  11. Function? onSubmitted,
  12. bool isReadOnly = false,
  13. Widget? prefix,
  14. Color? inputFieldColor,
  15. TextStyle style = const TextStyle(fontSize: 15, fontWeight: FontWeight.normal),
  16. TextStyle hintStyle = const TextStyle(color: ColorConstants.darkGrey, fontSize: 15, fontWeight: FontWeight.normal),
})

Implementation

CustomInputField({
  Key? key,
  this.hintText = '',
  this.height = 50,
  this.width = 300,
  this.iconColor,
  this.icon,
  this.onTap,
  this.onIconTap,
  this.value,
  this.initialValue = '',
  this.onSubmitted,
  this.isReadOnly = false,
  this.prefix,
  this.inputFieldColor,
  this.style = const TextStyle(
    fontSize: 15,
    fontWeight: FontWeight.normal,
  ),
  this.hintStyle = const TextStyle(
    color: ColorConstants.darkGrey,
    fontSize: 15,
    fontWeight: FontWeight.normal,
  ),
}) : super(key: key);