Skip to content

Commit aff1a72

Browse files
committed
fix #18
1 parent 8581f6d commit aff1a72

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed

lib/page/IssueDetailPage.dart

+24-15
Original file line numberDiff line numberDiff line change
@@ -226,21 +226,30 @@ class _IssueDetailPageState extends GSYListState<IssueDetailPage> {
226226
_replyIssue() {
227227
//回复 Info
228228
String content = "";
229-
CommonUtils.showEditDialog(context, GSYStrings.issue_reply_issue, null, (replyContent) {
230-
content = replyContent;
231-
}, () {
232-
if (content == null || content.trim().length == 0) {
233-
Fluttertoast.showToast(msg: GSYStrings.issue_edit_issue_content_not_be_null);
234-
return;
235-
}
236-
CommonUtils.showLoadingDialog(context);
237-
//提交评论
238-
IssueDao.addIssueCommentDao(userName, reposName, issueNum, content).then((result) {
239-
showRefreshLoading();
240-
Navigator.pop(context);
241-
Navigator.pop(context);
242-
});
243-
}, needTitle: false);
229+
CommonUtils.showEditDialog(
230+
context,
231+
GSYStrings.issue_reply_issue,
232+
null,
233+
(replyContent) {
234+
content = replyContent;
235+
},
236+
() {
237+
if (content == null || content.trim().length == 0) {
238+
Fluttertoast.showToast(msg: GSYStrings.issue_edit_issue_content_not_be_null);
239+
return;
240+
}
241+
CommonUtils.showLoadingDialog(context);
242+
//提交评论
243+
IssueDao.addIssueCommentDao(userName, reposName, issueNum, content).then((result) {
244+
showRefreshLoading();
245+
Navigator.pop(context);
246+
Navigator.pop(context);
247+
});
248+
},
249+
needTitle: false,
250+
titleController: issueInfoTitleControl,
251+
valueController: issueInfoValueControl,
252+
);
244253
}
245254

246255
_getBottomWidget() {

pubspec.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages:
1414
name: args
1515
url: "https://pub.flutter-io.cn"
1616
source: hosted
17-
version: "1.4.4"
17+
version: "1.5.0"
1818
async:
1919
dependency: transitive
2020
description:
@@ -28,7 +28,7 @@ packages:
2828
name: build
2929
url: "https://pub.flutter-io.cn"
3030
source: hosted
31-
version: "0.12.7+2"
31+
version: "0.12.7+3"
3232
build_config:
3333
dependency: transitive
3434
description:
@@ -173,7 +173,7 @@ packages:
173173
name: flutter_markdown
174174
url: "https://pub.flutter-io.cn"
175175
source: hosted
176-
version: "0.1.5"
176+
version: "0.1.6"
177177
flutter_redux:
178178
dependency: "direct main"
179179
description:
@@ -194,7 +194,7 @@ packages:
194194
name: flutter_spinkit
195195
url: "https://pub.flutter-io.cn"
196196
source: hosted
197-
version: "2.0.0"
197+
version: "2.0.1"
198198
flutter_statusbar:
199199
dependency: "direct main"
200200
description:
@@ -320,7 +320,7 @@ packages:
320320
name: markdown
321321
url: "https://pub.flutter-io.cn"
322322
source: hosted
323-
version: "1.1.1"
323+
version: "2.0.2"
324324
matcher:
325325
dependency: transitive
326326
description:
@@ -390,7 +390,7 @@ packages:
390390
name: photo_view
391391
url: "https://pub.flutter-io.cn"
392392
source: hosted
393-
version: "0.0.3"
393+
version: "0.0.4"
394394
plugin:
395395
dependency: transitive
396396
description:

0 commit comments

Comments
 (0)