defaultBuilder method
Default builder for the widget, which is necessary and must been override.
Implementation
@override
Widget defaultBuilder(BuildContext context) {
return TencentCloudChatThemeWidget(
build: (context, color, textStyle) => Material(
color: color.backgroundColor,
child: InkWell(
onTap: navigateToChat,
child: Container(
width: MediaQuery.of(context).size.width,
padding: EdgeInsets.symmetric(
vertical: getHeight(7),
horizontal: getWidth(3),
),
child: Row(children: [
TencentCloudChat.instance.dataInstance.contact.contactBuilder?.getContactItemAvatarBuilder(widget.friend),
TencentCloudChat.instance.dataInstance.contact.contactBuilder?.getContactItemContentBuilder(widget.friend),
TencentCloudChat.instance.dataInstance.contact.contactBuilder?.getContactItemElseBuilder(widget.friend),
]),
),
),
),
);
}