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. double radius = 10,
  9. String hintText = "Type...",
  10. bool viewEmojis = false,
  11. TextStyle? hintStyle,
})

Implementation

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