diff --git a/assets/rescue.png b/assets/rescue.png new file mode 100644 index 0000000..29b4e36 Binary files /dev/null and b/assets/rescue.png differ diff --git a/lib/ui/about/about_ui.dart b/lib/ui/about/about_ui.dart index 0a39016..1de6c5a 100644 --- a/lib/ui/about/about_ui.dart +++ b/lib/ui/about/about_ui.dart @@ -1,3 +1,4 @@ +import 'package:flutter_tilt/flutter_tilt.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:starcitizen_doctor/base/ui.dart'; import 'package:starcitizen_doctor/common/conf/app_conf.dart'; @@ -117,6 +118,8 @@ class AboutUI extends BaseUI { ), ], ), + const SizedBox(height: 24), + makeRescueBanner(context), const Spacer(), Row( children: [ @@ -151,6 +154,36 @@ class AboutUI extends BaseUI { ); } + Widget makeRescueBanner(BuildContext context) { + return GestureDetector( + onTap: () async { + await showToast(context, + "您即将前往由 深空治疗中心(群号:536454632 ) 提供的游戏异常救援服务,主要解决游戏安装失败与频繁闪退,如游戏玩法问题,请勿加群。"); + launchUrlString( + "https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=-M4wEme_bCXbUGT4LFKLH0bAYTFt70Ad&authKey=vHVr0TNgRmKu%2BHwywoJV6EiLa7La2VX74Vkyixr05KA0H9TqB6qWlCdY%2B9jLQ4Ha&noverify=0&group_code=536454632"); + }, + child: Tilt( + shadowConfig: const ShadowConfig(maxIntensity: .2), + borderRadius: BorderRadius.circular(12), + child: Container( + decoration: BoxDecoration( + color: FluentTheme.of(context).cardColor, + ), + child: Padding( + padding: const EdgeInsets.all(12), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Image.asset("assets/rescue.png", width: 24, height: 24), + const SizedBox(width: 12), + const Text("安装失败?游戏闪退?? 点我加群获取免费人工支援!"), + ], + ), + )), + ), + ); + } + static const tipTextEN = "This is an unofficial Star Citizen fan-made tools, not affiliated with the Cloud Imperium group of companies. All content on this Software not authored by its host or users are property of their respective owners. \nStar Citizen®, Roberts Space Industries® and Cloud Imperium® are registered trademarks of Cloud Imperium Rights LLC.";