CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. TextInputType? textInputType,
  3. String labelText = '',
  4. String? initialValue,
  5. bool? enable,
  6. bool readOnly = false,
  7. bool? obscureText,
  8. Widget? prefix,
  9. Widget? suffix,
  10. String? title,
  11. String? hintText,
  12. TextEditingController? controller,
  13. int? maxLine,
  14. int? maxLength,
  15. List<TextInputFormatter>? inputFormatters,
  16. ValueChanged<String>? onchange,
  17. TextInputAction? textInputAction,
  18. double height = 45,
  19. 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,
});