defaultBuilder method
Default builder for the widget, which is necessary and must been override.
Implementation
@override
Widget defaultBuilder(BuildContext context) {
return TencentCloudChatThemeWidget(
build: (context, colorTheme, textStyle) => Container(
color: colorTheme.backgroundColor,
child: GestureDetector(
onTap: onManageMember,
child: Padding(
padding: EdgeInsets.symmetric(
vertical: getHeight(8),
horizontal: getWidth(16),
),
child: Row(
children: [
Padding(
padding: EdgeInsets.only(right: getWidth(16)),
child: TencentCloudChatAvatar(
imageList: [TencentCloudChatUtils.checkString(widget.memberFullInfo.faceUrl)],
width: getSquareSize(40),
height: getSquareSize(40),
borderRadius: getSquareSize(48),
scene: TencentCloudChatAvatarScene.groupProfile,
)),
Expanded(
child: Text(
TencentCloudChatUtils.checkString(widget.memberFullInfo.nameCard) ?? widget.memberFullInfo.userID,
style: TextStyle(color: colorTheme.groupProfileTextColor, fontSize: textStyle.fontsize_14),
)),
Icon(
Icons.arrow_forward_ios_rounded,
color: colorTheme.groupProfileTabTextColor,
)
],
),
)),
));
}