JuiTextArea constructor

const JuiTextArea({
  1. Key? key,
  2. GlobalKey<State<StatefulWidget>>? inputKey,
  3. String? label,
  4. String? hintText,
  5. TextStyle? style,
  6. Color? colorText,
  7. TextInputType? keyboardType,
  8. Color? labelColor,
  9. Color cursorColor = JuiColors.tertiaryColor,
  10. Color backgroundColor = const Color(0xFFF8F8F8),
  11. Color? errorColor,
  12. bool disabled = false,
  13. Color disabledColor = const Color(0xffececec),
  14. Color disabledColorText = const Color(0xff999999),
  15. int maxLines = 4,
  16. TextInputAction? textInputAction,
  17. String? initialValue,
  18. TextEditingController? controller,
  19. dynamic onFieldSubmitted(
    1. String
    )?,
  20. List<TextInputFormatter>? inputFormatters,
  21. String? validator(
    1. String?
    )?,
  22. Widget? suffixIcon,
})

Implementation

const JuiTextArea({
  Key? key,
  this.inputKey,
  this.label,
  this.hintText,
  this.style,
  this.colorText,
  this.keyboardType,
  this.labelColor,
  this.cursorColor = JuiColors.tertiaryColor,
  this.backgroundColor = const Color(0xFFF8F8F8),
  this.errorColor,
  this.disabled = false,
  this.disabledColor = const Color(0xffececec),
  this.disabledColorText = const Color(0xff999999),
  this.maxLines = 4,
  this.textInputAction,
  this.initialValue,
  this.controller,
  this.onFieldSubmitted,
  this.inputFormatters,
  this.validator,
  this.suffixIcon,
})  : assert(style != null),
      super(key: key);