Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-31 12:13:38 +08:00
parent 2e11247af4
commit 63e4bac204
62 changed files with 316 additions and 162 deletions

View File

@@ -21,6 +21,11 @@ abstract final class Utils {
static const jsonEncoder = JsonEncoder.withIndent(' ');
static String levelName(
Object level, {
bool isSeniorMember = false,
}) => 'assets/images/lv/lv${isSeniorMember ? '6_s' : level}.png';
static Color index2Color(int index, Color color) => switch (index) {
0 => const Color(0xFFfdad13),
1 => const Color(0xFF8aace1),