@@ -59,6 +59,19 @@ class IssueHeaderItem extends StatelessWidget {
5959 return bottomContainer;
6060 }
6161
62+ ///关闭操作人
63+ _renderCloseByText () {
64+ return (issueHeaderViewModel.closed_by == null )
65+ ? new Container ()
66+ : new Container (
67+ child: new Text (
68+ "Close By " + issueHeaderViewModel.closed_by,
69+ style: GSYConstant .subSmallText,
70+ ),
71+ margin: new EdgeInsets .only (right: 5.0 , top: 10.0 , bottom: 10.0 ),
72+ alignment: Alignment .topRight);
73+ }
74+
6275 @override
6376 Widget build (BuildContext context) {
6477 return new GSYCardItem (
@@ -123,6 +136,9 @@ class IssueHeaderItem extends StatelessWidget {
123136
124137 ///评论内容
125138 GSYMarkdownWidget (markdownData: issueHeaderViewModel.issueDesHtml, style: GSYMarkdownWidget .DARK_THEME ),
139+
140+ ///close 用户
141+ _renderCloseByText ()
126142 ],
127143 ),
128144 ),
@@ -136,7 +152,7 @@ class IssueHeaderViewModel {
136152 String actionUser = "---" ;
137153 String actionUserPic = "---" ;
138154
139- // String closed_by = "---";
155+ String closed_by = "---" ;
140156 bool locked = false ;
141157 String issueComment = "---" ;
142158 String issueDesHtml = "---" ;
@@ -151,7 +167,7 @@ class IssueHeaderViewModel {
151167 actionTime = CommonUtils .getNewsTimeStr (issueMap.createdAt);
152168 actionUser = issueMap.user.login;
153169 actionUserPic = issueMap.user.avatar_url;
154- // closed_by = issueMap.closed_by != null ? issueMap["closed_by"][" login"] : "";
170+ closed_by = issueMap.closeBy != null ? issueMap.closeBy. login : "" ;
155171 locked = issueMap.locked;
156172 issueComment = issueMap.title;
157173 issueDesHtml = issueMap.bodyHtml != null ? issueMap.bodyHtml : (issueMap.body != null ) ? issueMap.body : "" ;
0 commit comments