CustomInputField constructor
CustomInputField({
- Key? key,
- String hintText = '',
- double height = 50,
- double width = 300,
- Color? iconColor,
- IconData? icon,
- Function? onTap,
- Function? onIconTap,
- ValueChanged<
String> ? value, - String initialValue = '',
- Function? onSubmitted,
- bool isReadOnly = false,
- Widget? prefix,
- Color? inputFieldColor,
- TextStyle style = const TextStyle(fontSize: 15, fontWeight: FontWeight.normal),
- 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);