defaultBuilder method

  1. @override
Widget defaultBuilder(
  1. BuildContext context
)
override

Default builder for the widget, which is necessary and must been override.

Implementation

@override
Widget defaultBuilder(BuildContext context) {
  return TencentCloudChatThemeWidget(
      build: (context, colorTheme, textStyle) => Scaffold(
          appBar: AppBar(
            title: Text(tL10n.groupManagement,
                style: TextStyle(
                  fontSize: textStyle.fontsize_16,
                  color: colorTheme.groupProfileTextColor,
                )),
            centerTitle: true,
          ),
          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,
                    ))
            ],
          )));
}