buildGroupManagement method

Widget buildGroupManagement(
  1. dynamic colorTheme,
  2. dynamic textStyle
)

Implementation

Widget buildGroupManagement(colorTheme, textStyle) {
  if (widget.groupInfo.groupType != GroupType.Work && checkIsAdminOrOwner()) {
    return GestureDetector(
      onTap: openGroupManagement,
      child: Container(
        margin: EdgeInsets.symmetric(vertical: getWidth(1)),
        padding: EdgeInsets.symmetric(horizontal: getWidth(16), vertical: getHeight(12)),
        width: MediaQuery.of(context).size.width,
        color: colorTheme.groupProfileTabBackground,
        child: Row(children: [
          Expanded(child: Text(tL10n.groupManagement, style: TextStyle(color: colorTheme.groupProfileTabTextColor, fontSize: textStyle.fontsize_16))),
        ]),
      ),
    );
  }
  return Container();
}