timBuild method
Implementation
@override
Widget timBuild(BuildContext context) {
return ExtendedText(_getContentSpan(messageText, context), softWrap: true,
onSpecialTextTap: (dynamic parameter) {
if (parameter.toString().startsWith(HttpText.flag)) {
if (onLinkTap != null) {
onLinkTap!((parameter.toString()).replaceAll(HttpText.flag, ''));
} else {
LinkUtils.launchURL(
context, (parameter.toString()).replaceAll(HttpText.flag, ''));
}
}
},
style: style ?? const TextStyle(fontSize: 16.0),
specialTextSpanBuilder: DefaultSpecialTextSpanBuilder(
isUseQQPackage: isUseQQPackage,
isUseTencentCloudChatPackage: isUseTencentCloudChatPackage,
isUseTencentCloudChatPackageOldKeys: isUseTencentCloudChatPackageOldKeys,
customEmojiStickerList: customEmojiStickerList,
showAtBackground: true,
));
}