TextField constructor
TextField({
- Key? key,
- required TextEditingController controller,
- required String hint,
- Icon? prefixIcon,
- bool isRequired = true,
- bool readOnly = false,
- bool? enable,
- int? maxLines,
- double borderRadius = 5,
- Color borderColor = const Color.fromRGBO(220, 220, 220, 1),
- Color borderFocusedColor = const Color.fromRGBO(220, 220, 220, 1),
- TextInputType inputType = TextInputType.text,
- String? validator()?,
- String? onChanged()?,
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
});