DefaultChatTheme constructor

DefaultChatTheme({
  1. BorderRadius? imageBorderRadius,
  2. Color? backgroundColor,
  3. DecorationImage? backgroundImage = const DecorationImage(image: CachedNetworkImageProvider("https://i.pinimg.com/736x/85/ec/df/85ecdf1c3611ecc9b7fa85282d9526e0.jpg"), fit: BoxFit.cover),
  4. Color? userStatusColor = Colors.green,
  5. Widget verificationBadge = const Iconify(Ic.sharp_verified, color: Colors.green, size: 14),
  6. TextStyle timestampTextStyle = const TextStyle(fontSize: 14, color: Color.fromARGB(255, 114, 114, 114), fontWeight: FontWeight.w500),
  7. TextStyle urlTextStyle = const TextStyle(color: Colors.blue),
  8. TextStyle actionMessageTextStyle = const TextStyle(fontSize: 14, color: Color.fromARGB(255, 114, 114, 114), fontWeight: FontWeight.w500),
  9. TextStyle linkPreviewTitleStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
  10. TextStyle linkPreviewTextStyle = const TextStyle(color: Color.fromARGB(255, 182, 182, 182)),
  11. EdgeInsetsGeometry bodyPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 20),
  12. EdgeInsetsGeometry usernamePadding = const EdgeInsets.all(2),
  13. Widget seenIcon = const MessageStatus(2),
  14. Widget sentIcon = const MessageStatus(1),
  15. Widget sendingFailedIcon = const Iconify(Mdi.alert_circle_outline, color: Colors.red),
  16. TextStyle inwardMessageTextStyle = const TextStyle(color: Color.fromARGB(255, 225, 225, 225), fontSize: 14, fontWeight: FontWeight.w500),
  17. TextStyle timeTextStyle = const TextStyle(color: Colors.white, fontSize: 12),
  18. TextStyle outwardMessageTextStyle = const TextStyle(color: Color.fromARGB(255, 225, 225, 225), fontSize: 14, fontWeight: FontWeight.w500),
  19. Color audioWaveColor = const Color.fromARGB(255, 213, 213, 213),
  20. TextStyle usernameTextStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
  21. TextStyle avatarTextStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 22, fontFamily: 'Satoshi'),
  22. EdgeInsetsGeometry messagePadding = const EdgeInsets.all(10.0),
  23. BorderRadiusGeometry? inwardMessageBorderRadius = const BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20), bottomRight: Radius.circular(20), bottomLeft: Radius.circular(5)),
  24. BorderRadiusGeometry? outwardMessageBorderRadius = const BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20), bottomRight: Radius.circular(5), bottomLeft: Radius.circular(20)),
  25. Color primaryColor = Colors.blue,
  26. Color inwardMessageBackgroundColor = const Color(0xff373E4E),
  27. Color outwardMessageBackgroundColor = const Color(0xff7A8194),
  28. double messageWidth = 0.7,
  29. EdgeInsetsGeometry messageMargin = const EdgeInsets.only(top: 20),
  30. EdgeInsetsGeometry actionMessageMargin = const EdgeInsets.only(top: 15, left: 20, right: 20),
  31. Color defaultUserColor = Colors.blue,
  32. double userAvatarRadius = 10.0,
})

Implementation

DefaultChatTheme(
    {super.imageBorderRadius,
    super.backgroundColor,
    super.backgroundImage = const DecorationImage(
      image: CachedNetworkImageProvider(
          "https://i.pinimg.com/736x/85/ec/df/85ecdf1c3611ecc9b7fa85282d9526e0.jpg"),
      fit: BoxFit.cover,
    ),
    super.userStatusColor = Colors.green,
    super.verificationBadge = const Iconify(
      Ic.sharp_verified,
      color: Colors.green,
      size: 14,
    ),
    super.timestampTextStyle = const TextStyle(
      fontSize: 14,
      color: Color.fromARGB(255, 114, 114, 114),
      fontWeight: FontWeight.w500,
    ),
    super.urlTextStyle = const TextStyle(
      color: Colors.blue,
    ),
    super.actionMessageTextStyle = const TextStyle(
      fontSize: 14,
      color: Color.fromARGB(255, 114, 114, 114),
      fontWeight: FontWeight.w500,
    ),
    super.linkPreviewTitleStyle =
        const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
    super.linkPreviewTextStyle = const TextStyle(
      color: Color.fromARGB(255, 182, 182, 182),
    ),
    super.bodyPadding =
        const EdgeInsets.symmetric(vertical: 10, horizontal: 20),
    super.usernamePadding = const EdgeInsets.all(2),
    super.seenIcon = const MessageStatus(2),
    super.sentIcon = const MessageStatus(1),
    super.sendingFailedIcon = const Iconify(
      Mdi.alert_circle_outline,
      color: Colors.red,
    ),
    super.inwardMessageTextStyle = const TextStyle(
      color: Color.fromARGB(255, 225, 225, 225),
      fontSize: 14,
      fontWeight: FontWeight.w500,
    ),
    super.timeTextStyle = const TextStyle(
      color: Colors.white,
      fontSize: 12,
    ),
    super.outwardMessageTextStyle = const TextStyle(
      color: Color.fromARGB(255, 225, 225, 225),
      fontSize: 14,
      fontWeight: FontWeight.w500,
    ),
    super.audioWaveColor = const Color.fromARGB(255, 213, 213, 213),
    super.usernameTextStyle = const TextStyle(
      fontSize: 14,
      fontWeight: FontWeight.bold,
    ),
    super.avatarTextStyle = const TextStyle(
        color: Colors.white,
        fontWeight: FontWeight.bold,
        fontSize: 22,
        fontFamily: 'Satoshi'),
    super.messagePadding = const EdgeInsets.all(10.0),
    super.inwardMessageBorderRadius = const BorderRadius.only(
      topLeft: Radius.circular(20),
      topRight: Radius.circular(20),
      bottomRight: Radius.circular(20),
      bottomLeft: Radius.circular(5),
    ),
    super.outwardMessageBorderRadius = const BorderRadius.only(
      topLeft: Radius.circular(20),
      topRight: Radius.circular(20),
      bottomRight: Radius.circular(5),
      bottomLeft: Radius.circular(20),
    ),
    super.primaryColor = Colors.blue,
    super.inwardMessageBackgroundColor = const Color(0xff373E4E),
    super.outwardMessageBackgroundColor = const Color(0xff7A8194),
    super.messageWidth = 0.7,
    super.messageMargin = const EdgeInsets.only(top: 20),
    super.actionMessageMargin =
        const EdgeInsets.only(top: 15, left: 20, right: 20),
    super.defaultUserColor = Colors.blue,
    super.userAvatarRadius = 10.0});