getDraftWidget method
dynamic
getDraftWidget(
- TencentCloudChatTextStyle textStyle,
- 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;
}