tagCreator function
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,
),
),
),
],
),
),
],
);
}