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(
margin: EdgeInsets.only(top: getHeight(14), bottom: getHeight(40)),
padding: EdgeInsets.symmetric(horizontal: getSquareSize(16)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
mainAxisSize: MainAxisSize.max,
children: [
_buildClickableItem(icon: Icons.search_outlined, label: tL10n.search, onTap: () {}),
_buildClickableItem(
icon: Icons.call,
label: tL10n.voiceCall,
onTap: () {
if (widget.startVoiceCall != null) {
widget.startVoiceCall!();
}
}),
_buildClickableItem(
icon: Icons.videocam_outlined,
label: tL10n.videoCall,
onTap: () {
if (widget.startVideoCall != null) {
widget.startVideoCall!();
}
}),
],
)));
}