defaultBuilder method

  1. @override
Widget defaultBuilder(
  1. BuildContext context
)
override

Default builder for the widget, which is necessary and must been override.

Implementation

@override
Widget defaultBuilder(BuildContext context) {
  return Expanded(
      child: Row(
    mainAxisAlignment: MainAxisAlignment.start,
    children: [
      Expanded(
        child: TencentCloudChatThemeWidget(
          build: (context, colorTheme, textStyle) => Text(
            _getShowName(widget.friend),
            maxLines: 2,
            overflow: TextOverflow.ellipsis,
            style: TextStyle(
              fontSize: textStyle.fontsize_14,
              fontWeight: FontWeight.w400,
              color: colorTheme.contactItemFriendNameColor,
            ),
          ),
        ),
      ),
    ],
  ));
}