Skip to content

Commit b56a4c4

Browse files
committed
问题反馈
1 parent b2d964b commit b56a4c4

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

‎lib/common/style/GSYStyle.dart‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ class GSYStrings {
193193

194194
static const String Login_out = "退出登录";
195195

196+
static const String home_reply = "问题反馈";
197+
196198
static const String login_username_hint_text = "请输入github用户名";
197199
static const String login_password_hint_text = "请输入密码";
198200
static const String login_success = "登录成功";

‎lib/widget/HomeDrawer.dart‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_redux/flutter_redux.dart';
3+
import 'package:gsy_github_app_flutter/common/dao/IssueDao.dart';
34
import 'package:gsy_github_app_flutter/common/dao/UserDao.dart';
45
import 'package:gsy_github_app_flutter/common/model/User.dart';
56
import 'package:gsy_github_app_flutter/common/redux/GSYState.dart';
67
import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart';
8+
import 'package:gsy_github_app_flutter/common/utils/CommonUtils.dart';
79
import 'package:gsy_github_app_flutter/common/utils/NavigatorUtils.dart';
810

911
/**
@@ -46,6 +48,27 @@ class HomeDrawer extends StatelessWidget {
4648
color: Color(GSYColors.primaryValue),
4749
),
4850
),
51+
new ListTile(
52+
//第一个功能项
53+
title: new Text(
54+
GSYStrings.home_reply,
55+
style: GSYConstant.normalText,
56+
),
57+
onTap: () {
58+
String content = "";
59+
CommonUtils.showEditDialog(context, GSYStrings.home_reply, (title) {}, (res) {
60+
content = res;
61+
}, () {
62+
if (content == null || content.length == 0) {
63+
return;
64+
}
65+
CommonUtils.showLoadingDialog(context);
66+
IssueDao.createIssueDao("CarGuo", "GSYGithubAppFlutter", {"title": "问题反馈", "body": content}).then((result) {
67+
Navigator.pop(context);
68+
Navigator.pop(context);
69+
});
70+
}, needTitle: false);
71+
}),
4972
new ListTile(
5073
//第一个功能项
5174
title: new Text(

0 commit comments

Comments
 (0)