Skip to content

Commit 885dbac

Browse files
committed
about
1 parent b56a4c4 commit 885dbac

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

‎lib/common/style/GSYStyle.dart‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ class GSYStrings {
194194
static const String Login_out = "退出登录";
195195

196196
static const String home_reply = "问题反馈";
197+
static const String home_about = "关于";
197198

198199
static const String login_username_hint_text = "请输入github用户名";
199200
static const String login_password_hint_text = "请输入密码";

‎lib/widget/HomeDrawer.dart‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class HomeDrawer extends StatelessWidget {
4949
),
5050
),
5151
new ListTile(
52-
//第一个功能项
5352
title: new Text(
5453
GSYStrings.home_reply,
5554
style: GSYConstant.normalText,
@@ -70,7 +69,19 @@ class HomeDrawer extends StatelessWidget {
7069
}, needTitle: false);
7170
}),
7271
new ListTile(
73-
//第一个功能项
72+
title: new Text(
73+
GSYStrings.home_about,
74+
style: GSYConstant.normalText,
75+
),
76+
onTap: () {
77+
showDialog(context: context, builder: (BuildContext context) => AboutDialog(
78+
applicationName :GSYStrings.app_name,
79+
applicationVersion: "1.0.0",
80+
applicationIcon: new Image(image: new AssetImage('static/images/logo.png'), width: 50.0, height: 50.0),
81+
applicationLegalese: null,
82+
));
83+
}),
84+
new ListTile(
7485
title: new Text(
7586
GSYStrings.Login_out,
7687
style: GSYConstant.normalText,

0 commit comments

Comments
 (0)