getDraftWidget method

dynamic getDraftWidget(
  1. TencentCloudChatTextStyle textStyle,
  2. TencentCloudChatThemeColors colorTheme
)

Implementation

getDraftWidget(TencentCloudChatTextStyle textStyle, TencentCloudChatThemeColors colorTheme) {
  var draft = getDraftText();
  Widget draftWidget = draft.isEmpty
      ? Container()
      : Text(
          draft,
          style: TextStyle(
            color: colorTheme.conversationItemDraftTextColor,
            fontSize: textStyle.fontsize_12,
            fontWeight: FontWeight.w400,
          ),
        );
  return draftWidget;
}