TextField constructor

TextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String hint,
  4. Icon? prefixIcon,
  5. bool isRequired = true,
  6. bool readOnly = false,
  7. bool? enable,
  8. int? maxLines,
  9. double borderRadius = 5,
  10. Color borderColor = const Color.fromRGBO(220, 220, 220, 1),
  11. Color borderFocusedColor = const Color.fromRGBO(220, 220, 220, 1),
  12. TextInputType inputType = TextInputType.text,
  13. String? validator(
    1. String?
    )?,
  14. String? onChanged(
    1. String?
    )?,
})

Implementation

TextField({
  super.key,
  required this.controller,
  required this.hint,
  this.prefixIcon,
  this.isRequired = true,
  this.readOnly = false,
  this.enable,
  this.maxLines,
  this.borderRadius = 5,
  this.borderColor = const Color.fromRGBO(220, 220, 220, 1),
  this.borderFocusedColor = const Color.fromRGBO(220, 220, 220, 1),
  this.inputType = TextInputType.text,
  this.validator,
  this.onChanged
});