desktopBuilder method
Builder for desktop platform (both desktop app and desktop web).
Use this builder to customize the widget appearance and behavior for desktop platform in general.
Implementation
@override
Widget? desktopBuilder(BuildContext context) {
return TencentCloudChatThemeWidget(
build: (context, colorTheme, textStyle) => Scaffold(
body: Column(
children: [
Container(
margin: EdgeInsets.only(top: getHeight(8)),
child: Column(children: [
TencentCloudChatOperationBar(
label: tL10n.enabledGroupMute,
operationBarType: OperationBarType.switchControl,
value: isMuted,
onChange: (bool value) {
_onGroupMemberMute(value);
},
),
Container(
padding: EdgeInsets.symmetric(horizontal: getWidth(17), vertical: getHeight(7)),
child: Text(
tL10n.onlyGroupOwnerAndAdminsCanSendMessages,
style: TextStyle(fontSize: textStyle.fontsize_12),
),
),
]),
),
isMuted
? Container()
: Expanded(
child: TencentCloudChatGroupProfileAddMuteMember(
groupInfo: widget.groupInfo,
memberList: widget.memberList,
))
],
)));
}