buildConvReadIcon method

Positioned buildConvReadIcon(
  1. TextStyle textStyle,
  2. Color bgColor
)

Implementation

Positioned buildConvReadIcon(TextStyle textStyle, Color bgColor) {
  return Positioned(
      right: 0,
      child: CircleAvatar(
        backgroundColor: bgColor,
        radius: 9,
        child: Text(
          returnFormattedCount(item.unreadMessageCount!) != "0"
              ? returnFormattedCount(item.unreadMessageCount!)
              : "",
          style: textStyle,
          // style: const TextStyle(fontSize: 8, color: Colors.white, fontFamily: 'sf_ui'),
        ),
      ));
}