CustomInputWithIcon constructor

const CustomInputWithIcon({
  1. Key? key,
  2. TextEditingController? controller,
  3. required Widget icon,
  4. String? hint,
  5. String? label,
  6. bool? filled,
  7. Color? fillColor,
  8. FocusNode? focusNode,
  9. Color? borderColor = null,
  10. dynamic onChanged(
    1. String
    )?,
  11. FormFieldValidator<String>? validator,
})

Implementation

const CustomInputWithIcon({
  super.key,
  super.controller,
  required Widget icon,
  String? hint,
  String? label,
  bool? filled,
  Color? fillColor,
  super.focusNode,
  super.borderColor = null,
  super.onChanged,
  super.validator,
}) : super(
  prefixWidget: icon,
  hintText: hint,
  labelText: label,
  filled: filled,
  fillColor: fillColor,
);