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(
            padding: EdgeInsets.all(getSquareSize(16)),
            child: Column(
              children: [
                Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Expanded(
                        child: Text(
                      groupName,
                      textAlign: TextAlign.center,
                      maxLines: 1,
                      overflow: TextOverflow.ellipsis,
                      style: TextStyle(fontSize: textStyle.fontsize_24, fontWeight: FontWeight.w600),
                    )),
                    FloatingActionButton.small(
                        onPressed: changeGroupName,
                        elevation: 0,
                        backgroundColor: colorTheme.contactBackgroundColor,
                        child: Icon(
                          Icons.border_color_rounded,
                          color: colorTheme.contactBackButtonColor,
                          size: getSquareSize(15),
                        ))
                  ],
                ),
                Text(
                  "ID: ${widget.groupInfo.groupID}",
                  style: TextStyle(fontSize: textStyle.fontsize_12),
                )
              ],
            ),
          ));
}