Skip to content

Commit

Permalink
fix #18
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Aug 9, 2018
1 parent 8581f6d commit aff1a72
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 deletions.
39 changes: 24 additions & 15 deletions lib/page/IssueDetailPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,21 +226,30 @@ class _IssueDetailPageState extends GSYListState<IssueDetailPage> {
_replyIssue() {
//回复 Info
String content = "";
CommonUtils.showEditDialog(context, GSYStrings.issue_reply_issue, null, (replyContent) {
content = replyContent;
}, () {
if (content == null || content.trim().length == 0) {
Fluttertoast.showToast(msg: GSYStrings.issue_edit_issue_content_not_be_null);
return;
}
CommonUtils.showLoadingDialog(context);
//提交评论
IssueDao.addIssueCommentDao(userName, reposName, issueNum, content).then((result) {
showRefreshLoading();
Navigator.pop(context);
Navigator.pop(context);
});
}, needTitle: false);
CommonUtils.showEditDialog(
context,
GSYStrings.issue_reply_issue,
null,
(replyContent) {
content = replyContent;
},
() {
if (content == null || content.trim().length == 0) {
Fluttertoast.showToast(msg: GSYStrings.issue_edit_issue_content_not_be_null);
return;
}
CommonUtils.showLoadingDialog(context);
//提交评论
IssueDao.addIssueCommentDao(userName, reposName, issueNum, content).then((result) {
showRefreshLoading();
Navigator.pop(context);
Navigator.pop(context);
});
},
needTitle: false,
titleController: issueInfoTitleControl,
valueController: issueInfoValueControl,
);
}

_getBottomWidget() {
Expand Down
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
name: args
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.4.4"
version: "1.5.0"
async:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: build
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.12.7+2"
version: "0.12.7+3"
build_config:
dependency: transitive
description:
Expand Down Expand Up @@ -173,7 +173,7 @@ packages:
name: flutter_markdown
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.5"
version: "0.1.6"
flutter_redux:
dependency: "direct main"
description:
Expand All @@ -194,7 +194,7 @@ packages:
name: flutter_spinkit
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.0"
version: "2.0.1"
flutter_statusbar:
dependency: "direct main"
description:
Expand Down Expand Up @@ -320,7 +320,7 @@ packages:
name: markdown
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.1"
version: "2.0.2"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -390,7 +390,7 @@ packages:
name: photo_view
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.3"
version: "0.0.4"
plugin:
dependency: transitive
description:
Expand Down

0 comments on commit aff1a72

Please sign in to comment.