diff --git a/lib/generated/locale_keys.g.dart b/lib/generated/locale_keys.g.dart index 12839ca3..1de9e689 100644 --- a/lib/generated/locale_keys.g.dart +++ b/lib/generated/locale_keys.g.dart @@ -23,6 +23,7 @@ abstract class LocaleKeys { static const SignIn_ErrorFormat = 'SignIn.ErrorFormat'; static const SignIn = 'SignIn'; static const SignOut = 'SignOut'; + static const About = 'About'; static const Calendar_Calendar = 'Calendar.Calendar'; static const Calendar_CalendarCardCode = 'Calendar.CalendarCardCode'; static const Calendar_CalendarCardTime = 'Calendar.CalendarCardTime'; diff --git a/lib/main/drawer.dart b/lib/main/drawer.dart index e43131cd..36584cef 100644 --- a/lib/main/drawer.dart +++ b/lib/main/drawer.dart @@ -2,6 +2,7 @@ import 'package:extended_image/extended_image.dart'; import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; import 'package:package_info_plus/package_info_plus.dart'; +import 'package:url_launcher/url_launcher.dart'; import '../config.dart'; import '../global.dart'; @@ -51,6 +52,10 @@ class MainDrawer extends StatelessWidget { RestoreAction(AppState(isInitialized: true)), ), ), + ListTile( + title: Text(LocaleKeys.About.tr()), + onTap: () => launch('https://docs.xmux.xdea.io/app/about'), + ), ], ), ), diff --git a/res/translation/en.json b/res/translation/en.json index 1b7efce7..3aef3802 100644 --- a/res/translation/en.json +++ b/res/translation/en.json @@ -23,6 +23,7 @@ "ErrorFormat": "Invalid format." }, "SignOut": "Sign Out", + "About": "About", "Calendar": { "Calendar": "Calendar", "CalendarCardCode": "Code", diff --git a/res/translation/zh-CN.json b/res/translation/zh-CN.json index dfbd23a5..c8f6944a 100644 --- a/res/translation/zh-CN.json +++ b/res/translation/zh-CN.json @@ -23,6 +23,7 @@ "ErrorFormat": "格式不正确。" }, "SignOut": "登出", + "About": "于", "Calendar": { "Calendar": "日程", "CalendarCardCode": "代号", diff --git a/res/translation/zh-Hans.json b/res/translation/zh-Hans.json index dfbd23a5..29e9098e 100644 --- a/res/translation/zh-Hans.json +++ b/res/translation/zh-Hans.json @@ -23,6 +23,7 @@ "ErrorFormat": "格式不正确。" }, "SignOut": "登出", + "About": "关于", "Calendar": { "Calendar": "日程", "CalendarCardCode": "代号",