feat: 移植 B50 成绩图,并把项目名从 purarine 改回 ichino
海报从 Empurple 的 Best50ImageRenderer/ImageBuilder 移植:按原始像素坐标 (1762x1850 画布、300x100 卡片、5 列、行距 120) 叠加在 base.png 上,底图里 已画好的面板/药丸标签/页脚不重复绘制;页面外壳走 Ichino 的 Material 3。 RatingCalculator 的达成率分档改成单张有序表,避免偏移与评级错位; RA 与评级由 test/rating_calculator_test.dart 的边界用例锁定。 GetUserRatingApi 只需要 userId(Cookie 可选),所以 Preview API 模式、未登录 游戏服务器时也能出图,只是没有 FC/AP/FS 标记。导出用 RepaintBoundary 抓 全尺寸 PNG:原生走 share_plus(不支持文件分享的平台回退为落盘并提示路径), web 走下载。 BEST35 与 BEST15 改为各自独立排版。原先沿用 Empurple 的跨列表全局序号, BEST35 没打满时 BEST15 会整体上移混进上半区。 path_provider 会经 path_provider_android 2.3.x 拖入 jni 插件,而 jni 把 windows/linux 也声明成 ffiPlugin,桌面构建因此去链接 jvm.lib 并失败, 故用 dependency_overrides 钉住 path_provider_android <2.3.0。
This commit is contained in:
1 parent
24ccd628d1
commit
79fa0d7a20
67 files changed
+1563
-62
No files matched your search
+19
-2
@@ -4,12 +4,13 @@ class AppStrings {
|
||||
// Tab
|
||||
static const tabHome = '主页';
|
||||
static const tabTickets = '票据';
|
||||
static const tabBest50 = 'B50';
|
||||
static const tabRisk = '风险';
|
||||
static const tabSettings = '设置';
|
||||
static const tabAbout = '关于';
|
||||
|
||||
// Login
|
||||
static const appTitle = 'Purarine';
|
||||
static const appTitle = 'Ichino';
|
||||
static const loginSubtitle = '扫描或输入二维码进行登录';
|
||||
static const qrCodeToken = 'QR Code 令牌';
|
||||
static const qrHint = '粘贴二维码解析内容...';
|
||||
@@ -231,8 +232,24 @@ class AppStrings {
|
||||
static String musicRiskHubCooldownNotice(int remaining) =>
|
||||
'登录后需冷却 $ticketCooldownSeconds 秒,剩余 $remaining 秒后可执行高危操作。';
|
||||
|
||||
// Best50 (Best 50 成绩图)
|
||||
static const best50FeatureTitle = 'Best 50';
|
||||
static const best35Label = 'BEST 35';
|
||||
static const best15Label = 'BEST 15';
|
||||
static const best50Empty = '没有 Rating 数据。';
|
||||
static const best50LoadingMusic = '正在加载乐曲数据...';
|
||||
static const best50Export = '导出图片';
|
||||
static const best50Exporting = '导出中...';
|
||||
static const best50NoMusicData = '乐曲数据未就绪,定数与曲名可能缺失。';
|
||||
static String best50RatingSum(int b35, int b15) =>
|
||||
'B35: $b35 + B15: $b15 = ${b35 + b15}';
|
||||
static String best50Exported(String? path) =>
|
||||
path == null ? '图片已导出' : '图片已导出到 $path';
|
||||
static String best50ExportFailed(String error) => '导出失败: $error';
|
||||
static const best50Footer = 'Generated by Ichino. UI designed by chuxuehaocai.';
|
||||
|
||||
// About
|
||||
static const aboutTitle = 'Purarine';
|
||||
static const aboutTitle = 'Ichino';
|
||||
static const aboutDesc = '基于 QR Code 的 maimai DX 街机网络登录客户端。';
|
||||
static const credits = '致谢';
|
||||
static const creditBuiltWith = '构建框架';
|
||||
|
||||
Reference in new issue
Block a user