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: [
GestureDetector(
onTap: openSilenceMemberList,
child: Container(
margin: EdgeInsets.only(bottom: getHeight(1)),
padding: EdgeInsets.symmetric(vertical: getHeight(12), horizontal: getWidth(16)),
color: colorTheme.inputAreaBackground,
child: Row(children: [
Icon(
Icons.add_circle_outline_rounded,
size: getSquareSize(20),
color: colorTheme.groupProfileAddMemberTextColor,
),
SizedBox(
width: getWidth(5),
),
Text(
tL10n.addSilencedMember,
style: TextStyle(
fontSize: textStyle.fontsize_14, color: colorTheme.groupProfileAddMemberTextColor),
)
]),
)),
Expanded(
child: ListView.builder(
shrinkWrap: true,
itemCount: silencedMember.length,
itemBuilder: (context, index) {
return _buildSilencedMemberItem(silencedMember[index], colorTheme, textStyle);
}))
],
));
}