Skip to content

Commit f7ace2b

Browse files
committed
common list user
1 parent d4b5c5f commit f7ace2b

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎lib/widget/ReposHeaderItem.dart‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ class ReposHeaderItem extends StatelessWidget {
7171
new Padding(padding: new EdgeInsets.all(5.0)),
7272
new Row(
7373
children: <Widget>[
74-
new Text(reposHeaderViewModel.repositoryType != null ? reposHeaderViewModel.repositoryType : "--", style: GSYConstant.subLightSmallText),
74+
new Text(reposHeaderViewModel.repositoryType != null ? reposHeaderViewModel.repositoryType : "--",
75+
style: GSYConstant.subLightSmallText),
7576
new Container(width: 5.3, height: 1.0),
76-
new Text(reposHeaderViewModel.repositorySize != null ? reposHeaderViewModel.repositorySize : "--", style: GSYConstant.subLightSmallText),
77+
new Text(reposHeaderViewModel.repositorySize != null ? reposHeaderViewModel.repositorySize : "--",
78+
style: GSYConstant.subLightSmallText),
7779
new Container(width: 5.3, height: 1.0),
7880
new Text(reposHeaderViewModel.license != null ? reposHeaderViewModel.license : "--", style: GSYConstant.subLightSmallText),
7981
],
@@ -99,7 +101,10 @@ class ReposHeaderItem extends StatelessWidget {
99101
_getBottomItem(
100102
GSYICons.REPOS_ITEM_STAR,
101103
reposHeaderViewModel.repositoryStar,
102-
() {},
104+
() {
105+
NavigatorUtils.gotoCommonList(context, reposHeaderViewModel.repositoryName, "user", "repo_star",
106+
userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
107+
},
103108
),
104109
new Container(width: 0.3, height: 30.0, color: Color(GSYColors.subLightTextColor)),
105110
_getBottomItem(
@@ -114,7 +119,10 @@ class ReposHeaderItem extends StatelessWidget {
114119
_getBottomItem(
115120
GSYICons.REPOS_ITEM_WATCH,
116121
reposHeaderViewModel.repositoryWatch,
117-
() {},
122+
() {
123+
NavigatorUtils.gotoCommonList(context, reposHeaderViewModel.repositoryName, "user", "repo_watcher",
124+
userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
125+
},
118126
),
119127
new Container(width: 0.3, height: 30.0, color: Color(GSYColors.subLightTextColor)),
120128
_getBottomItem(

0 commit comments

Comments
 (0)