mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 添加commit更新内容按钮
This commit is contained in:
@@ -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),
|
||||||
|
)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user