mod: 添加commit更新内容按钮

This commit is contained in:
orz12
2024-03-06 16:34:17 +08:00
parent 1ea95a3079
commit dbca58e198

View File

@@ -83,7 +83,8 @@ class Utils {
if (videoItem.title is String) { if (videoItem.title is String) {
semanticsLabel += videoItem.title; semanticsLabel += videoItem.title;
} else { } else {
semanticsLabel += videoItem.title.map((e) => e['text'] as String).join(''); semanticsLabel +=
videoItem.title.map((e) => e['text'] as String).join('');
} }
if (!emptyStatCheck(videoItem.stat.view)) { if (!emptyStatCheck(videoItem.stat.view)) {
@@ -338,6 +339,19 @@ class Utils {
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
Text(data.body!), Text(data.body!),
TextButton(
onPressed: () {
launchUrl(
Uri.parse(
"https://github.com/orz12/pilipala/commits/main/"),
mode: LaunchMode.externalApplication,
);
},
child: Text(
"点此查看完整更新即commit内容",
style:
TextStyle(color: Theme.of(context).primaryColor),
)),
], ],
), ),
), ),