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) => Column(
            children: [
              Column(
                children: [
                  Container(
                    padding: EdgeInsets.symmetric(horizontal: getWidth(16), vertical: getHeight(8)),
                    margin: EdgeInsets.only(top: getHeight(16)),
                    width: MediaQuery.of(context).size.width,
                    color: colorTheme.groupProfileTabBackground,
                    child: Text(
                      tL10n.groupOfAnnouncement,
                      style: TextStyle(color: colorTheme.groupProfileTabTextColor, fontSize: textStyle.fontsize_16),
                    ),
                  ),
                  GestureDetector(
                    onTap: openAnnouncementPage,
                    child: Container(
                      padding: EdgeInsets.only(left: getWidth(16), right: getWidth(16), bottom: getHeight(8)),
                      width: MediaQuery.of(context).size.width,
                      color: colorTheme.groupProfileTabBackground,
                      child: Row(children: [
                        Expanded(
                            child: Text(
                          widget.groupInfo.notification ?? "",
                          overflow: TextOverflow.ellipsis,
                          maxLines: 1,
                          style: TextStyle(color: colorTheme.groupProfileTabTextColor, fontSize: textStyle.fontsize_14),
                        )),
                        Icon(
                          Icons.arrow_forward_ios_rounded,
                          color: colorTheme.groupProfileTabTextColor,
                        )
                      ]),
                    ),
                  )
                ],
              ),
              buildGroupManagement(colorTheme, textStyle),
              buildGroupType(colorTheme, textStyle),
              buildGroupOpt(colorTheme, textStyle),
            ],
          ));
}