From dbca58e1989d59dae4d666a6ed23586fac5170d6 Mon Sep 17 00:00:00 2001 From: orz12 Date: Wed, 6 Mar 2024 16:34:17 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E6=B7=BB=E5=8A=A0commit=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=86=85=E5=AE=B9=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/utils.dart | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index f6e3fed8..61dbd6d5 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -83,7 +83,8 @@ class Utils { if (videoItem.title is String) { semanticsLabel += videoItem.title; } 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)) { @@ -338,6 +339,19 @@ class Utils { ), const SizedBox(height: 8), 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), + )), ], ), ),