ChatTextField constructor

ChatTextField({
  1. Key? key,
  2. required dynamic send(
    1. String text
    ),
  3. required TextEditingController controller,
  4. dynamic onChanged(
    1. String text
    )?,
  5. Color? backgroundColor,
  6. int maxLines = 5,
  7. TextStyle? textStyle,
  8. String hintText = "Type...",
  9. TextStyle? hintStyle,
})

Implementation

ChatTextField(
    {Key? key,
    required this.send,
    required this.controller,
    this.onChanged,
    this.backgroundColor,
    this.maxLines = 5,
    this.textStyle,
    this.hintText = "Type...",
    this.hintStyle})
    : super(key: key) {
  textStyle ??= Get.find<AppFonts>().S();
  hintStyle ??=
      Get.find<AppFonts>().S(color: Get.find<AppColors>().hintColor);
}