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) => Column(children: [
Container(
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
width: 1,
color: colorTheme.backgroundColor,
)),
color: colorTheme.contactAddContactFriendInfoStateButtonBackgroundColor),
padding: EdgeInsets.symmetric(vertical: getHeight(10), horizontal: getWidth(16)),
child: GestureDetector(
onTap: onClearChatHistory,
child: Text(
tL10n.deleteAllMessages,
style: TextStyle(color: colorTheme.contactRefuseButtonColor, fontSize: textStyle.fontsize_16, fontWeight: FontWeight.w400),
))),
Container(
color: colorTheme.contactAddContactFriendInfoStateButtonBackgroundColor,
width: MediaQuery.of(context).size.width,
padding: EdgeInsets.symmetric(vertical: getHeight(10), horizontal: getWidth(16)),
child: GestureDetector(
onTap: onDeleteContact,
child: Text(
quitGroup ? tL10n.quit : tL10n.quitAndDelete,
style: TextStyle(color: colorTheme.contactRefuseButtonColor, fontSize: textStyle.fontsize_16, fontWeight: FontWeight.w400),
)))
]));
}