printElo function
dynamic
printElo(- int elo,
- bool opacity
)
Implementation
printElo(int elo, bool opacity) {
if (getElo(elo) != "null") {
return Container(
margin: const EdgeInsets.only(right: 5),
padding: const EdgeInsets.all(3),
decoration: BoxDecoration(
color: !opacity ? Colors.red : Colors.red.withOpacity(0.5),
borderRadius: const BorderRadius.all(Radius.circular(8)),
),
child: Text(
getElo(elo),
style: TextStyle(
fontSize: 13,
fontWeight: FontWeight.w900,
color: !opacity ? Colors.white : Colors.white.withOpacity(0.5),
),
),
);
} else {
return const SizedBox();
}
}