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) => Container(
          margin: EdgeInsets.symmetric(vertical: getHeight(16)),
          padding: EdgeInsets.symmetric(horizontal: getWidth(16), vertical: getHeight(12)),
          width: MediaQuery.of(context).size.width,
          color: colorTheme.groupProfileTabBackground,
          child: GestureDetector(
            onTap: onChangeNickName,
            child: Row(
              children: [
                Expanded(
                  child: Text(tL10n.myGroupNickName, style: TextStyle(color: colorTheme.groupProfileTabTextColor, fontSize: textStyle.fontsize_16, fontWeight: FontWeight.w400)),
                ),
                Row(children: [
                  Text(myNickname, style: TextStyle(color: colorTheme.groupProfileTextColor, fontSize: textStyle.fontsize_16, fontWeight: FontWeight.w400)),
                  SizedBox(
                    width: getWidth(8),
                  ),
                  Icon(
                    Icons.arrow_forward_ios_rounded,
                    size: getSquareSize(12),
                    color: colorTheme.groupProfileTabTextColor,
                  )
                ]),
              ],
            ),
          )));
}