tagCreator function

Widget tagCreator(
  1. String small,
  2. String big,
  3. int elo,
  4. BuildContext context
)

Implementation

Widget tagCreator(String small, String big, int elo, BuildContext context) {
  return Column(
    crossAxisAlignment: CrossAxisAlignment.start,
    children: [
      // Small subtext
      Text(
        small,
        overflow: TextOverflow.visible,
        style: TextStyle(
          color: Theme.of(context).colorScheme.primary,
          fontSize: 15,
        ),
      ),

      // Big title
      SizedBox(
        width: defaultWidth * 0.85 - defaultHeight * 0.08 - 40,
        child: Row(
          mainAxisAlignment: MainAxisAlignment.start,
          children: [
            showElo(elo),
            Flexible(
              child: Text(
                big,
                overflow: TextOverflow.visible,
                style: TextStyle(
                  color: Theme.of(context).colorScheme.primary,
                  fontWeight: FontWeight.bold,
                  fontSize: 22,
                ),
              ),
            ),
          ],
        ),
      ),
    ],
  );
}