CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? label,
  4. String? hintText,
  5. IconData? prefixIcon,
  6. Widget? suffixIcon,
  7. bool obscureText = false,
  8. TextInputType? keyboardType,
  9. String? validator(
    1. String?
    )?,
  10. void onChanged(
    1. String
    )?,
  11. int maxLines = 1,
  12. bool readOnly = false,
  13. VoidCallback? onTap,
})

Implementation

const CustomTextField({
  super.key,
  this.controller,
  this.label,
  this.hintText,
  this.prefixIcon,
  this.suffixIcon,
  this.obscureText = false,
  this.keyboardType,
  this.validator,
  this.onChanged,
  this.maxLines = 1,
  this.readOnly = false,
  this.onTap,
});