CustomTextField constructor
const
CustomTextField({
- Key? key,
- TextInputType? textInputType,
- String labelText = '',
- String? initialValue,
- bool? enable,
- bool readOnly = false,
- bool? obscureText,
- Widget? prefix,
- Widget? suffix,
- String? title,
- String? hintText,
- TextEditingController? controller,
- int? maxLine,
- int? maxLength,
- List<
TextInputFormatter> ? inputFormatters, - ValueChanged<
String> ? onchange, - TextInputAction? textInputAction,
- double height = 45,
- int maxLines = 1,
Add Max lines
Implementation
final int maxLines; ///Add Max lines
const CustomTextField({
super.key,
this.textInputType,
this.labelText = '',
this.initialValue,
this.enable,
this.readOnly = false,
this.obscureText,
this.prefix,
this.suffix,
this.title,
this.hintText,
this.controller,
this.maxLine,
this.maxLength,
this.inputFormatters,
this.onchange,
this.textInputAction,
this.height = 45,
this.maxLines = 1,
});