buildContent method

Widget buildContent()

Implementation

Widget buildContent() {
  switch (tagType) {
    case JacTagType.text:
      return Text(
        text,
        style: TextStyle(color: getColor(false), fontSize: fontSize, height: 1.5),
      );
    case JacTagType.icon:
      return Row(
        children: [
          icon ?? const SizedBox(),
          const SizedBox(
            width: 4,
          ),
          Text(
            text,
            style: TextStyle(color: getColor(false), fontSize: fontSize, height: 1.5),
          ),
        ],
      );
  }
}