mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-29 05:40:17 +08:00
opt: level img
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user