opt: level img

This commit is contained in:
My-Responsitories
2026-06-08 16:34:00 +08:00
parent 2df1277fca
commit 12013c7cfe
18 changed files with 439 additions and 49 deletions

View File

@@ -1,3 +1,6 @@
import 'package:PiliPlus/common/widgets/svg/level_icon.dart';
import 'package:flutter/material.dart';
abstract final class BiliUtils {
static bool isDefaultFav(int? attr) {
if (attr == null) {
@@ -21,8 +24,12 @@ abstract final class BiliUtils {
return tagid != null && tagid != 0 && tagid != -10 && tagid != -2;
}
static String levelName(
Object level, {
// https://s1.hdslb.com/bfs/svg-next/font/2025-10-27/freshspace-zpjpp3aqht.css
static Widget levelPicture(
int level, {
bool isSeniorMember = false,
}) => 'assets/images/lv/lv${isSeniorMember ? '6_s' : level}.png';
double height = 11,
}) {
return UserLevel(level, height: height, flash: isSeniorMember);
}
}