Skip to content

Commit

Permalink
mod: 关于页面增加官网链接
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Jan 25, 2024
1 parent e052c6e commit 01fa3c1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/pages/about/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ class _AboutPageState extends State<AboutPage> {
style: subTitleStyle,
),
),
ListTile(
onTap: () => _aboutController.webSiteUrl(),
title: const Text('访问官网'),
trailing: Text(
'https://pilipalanet.mysxl.cn',
style: subTitleStyle,
),
),
ListTile(
onTap: () => _aboutController.panDownload(),
title: const Text('网盘下载'),
Expand Down Expand Up @@ -244,4 +252,12 @@ class AboutController extends GetxController {
print(e);
}
}

// 官网
webSiteUrl() {
launchUrl(
Uri.parse('https://pilipalanet.mysxl.cn'),
mode: LaunchMode.externalApplication,
);
}
}

0 comments on commit 01fa3c1

Please sign in to comment.