cardinit method
dynamic
cardinit()
Implementation
cardinit() {
xtitle.value = title;
if (xtitle.value == CustomCardType.playerXP) {
xicon.value = const Icon(
Icons.auto_graph_outlined,
size: 15,
color: Colors.white,
);
xeffectcolor.value =
const Color.fromARGB(255, 10, 84, 175).withValues(alpha: 0.7);
}
if (xtitle.value == CustomCardType.playerPOP) {
xicon.value = const Icon(
Icons.remove_red_eye_outlined,
size: 15,
color: Colors.white,
);
xeffectcolor.value =
const Color.fromARGB(255, 175, 10, 10).withValues(alpha: 0.7);
} else {
xicon.value = const Icon(
Icons.auto_graph_outlined,
size: 15,
color: Colors.white,
);
xeffectcolor.value =
const Color.fromARGB(255, 10, 84, 175).withValues(alpha: 0.7);
}
xscrollController.value = ScrollController();
xfirstFetch.value = firstFetch;
}