TextView constructor

const TextView({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? placeholder,
  4. Color textColor = Colors.black,
  5. Color? placeholderColor,
  6. TextAlign textAlign = TextAlign.left,
  7. String? fontFamily,
  8. double? fontSize,
  9. FontWeight? fontWeight,
  10. int? maxLines,
  11. int? maxLength,
  12. bool isShowCounterText = false,
  13. bool autofocus = false,
  14. FocusNode? focusNode,
  15. TextInputType? keyboardType,
  16. bool enable = true,
  17. bool isDense = true,
  18. TextInputAction? textInputAction,
  19. VoidCallback? onTap,
  20. ValueChanged<String>? onChanged,
  21. ValueChanged<String>? onSubmitted,
})

Func

Implementation

const TextView({
  super.key,
  this.controller,
  this.placeholder,
  this.textColor = Colors.black,
  this.placeholderColor,
  this.textAlign = TextAlign.left,
  this.fontFamily,
  this.fontSize,
  this.fontWeight,
  this.maxLines,
  this.maxLength,
  this.isShowCounterText = false,
  this.autofocus = false,
  this.focusNode,
  this.keyboardType,
  this.enable = true,
  this.isDense = true,
  this.textInputAction,
  this.onTap,
  this.onChanged,
  this.onSubmitted,
});