@@ -23,12 +23,12 @@ class ReposHeaderItem extends StatelessWidget {
2323 child: new Center (
2424 child: new FlatButton (
2525 onPressed: onPressed,
26- padding: new EdgeInsets .all (0.0 ),
26+ padding: new EdgeInsets .all (0.0 ),
2727 child: new GSYIConText (
2828 icon,
2929 text,
30- GSYConstant .subSmallText ,
31- Color (GSYColors .subTextColor ),
30+ GSYConstant .subLightSmallText ,
31+ Color (GSYColors .subLightTextColor ),
3232 15.0 ,
3333 padding: 3.0 ,
3434 mainAxisAlignment: MainAxisAlignment .center,
@@ -51,91 +51,106 @@ class ReposHeaderItem extends StatelessWidget {
5151 return new Column (
5252 children: < Widget > [
5353 new GSYCardItem (
54- color: new Color (GSYColors .primaryValue),
55- child: new Padding (
56- padding: new EdgeInsets .only (left: 10.0 , top: 10.0 , right: 10.0 , bottom: 10.0 ),
57- child: new Column (
58- mainAxisSize: MainAxisSize .min,
59- children: < Widget > [
60- new Row (
61- children: < Widget > [
62- new RawMaterialButton (
63- constraints: new BoxConstraints (minWidth: 0.0 , minHeight: 0.0 ),
54+ color: new Color (GSYColors .primaryValue),
55+ child: new Container (
56+ decoration: new BoxDecoration (
57+ image: new DecorationImage (
58+ fit: BoxFit .fill,
59+ image: new NetworkImage (reposHeaderViewModel.ownerPic),
60+ ),
61+ ),
62+ child: new Container (
63+ decoration: new BoxDecoration (
64+ color: Color (0x90000000 ),
65+ ),
66+ child: new Padding (
67+ padding: new EdgeInsets .only (left: 10.0 , top: 10.0 , right: 10.0 , bottom: 10.0 ),
68+ child: new Column (
69+ mainAxisSize: MainAxisSize .min,
70+ children: < Widget > [
71+ new Row (
72+ children: < Widget > [
73+ new RawMaterialButton (
74+ constraints: new BoxConstraints (minWidth: 0.0 , minHeight: 0.0 ),
75+ padding: new EdgeInsets .all (0.0 ),
76+ onPressed: () {},
77+ child: new Text (reposHeaderViewModel.ownerName, style: GSYConstant .normalTextMitWhiteBold),
78+ ),
79+ new Text (" /" , style: GSYConstant .normalTextMitWhiteBold),
80+ new Text (" " + reposHeaderViewModel.repositoryName, style: GSYConstant .normalTextMitWhiteBold),
81+ ],
82+ ),
83+ new Padding (padding: new EdgeInsets .all (5.0 )),
84+ new Row (
85+ children: < Widget > [
86+ new Text (reposHeaderViewModel.repositoryType != null ? reposHeaderViewModel.repositoryType : "--" ,
87+ style: GSYConstant .subLightSmallText),
88+ new Container (width: 5.3 , height: 1.0 ),
89+ new Text (reposHeaderViewModel.repositorySize != null ? reposHeaderViewModel.repositorySize : "--" ,
90+ style: GSYConstant .subLightSmallText),
91+ new Container (width: 5.3 , height: 1.0 ),
92+ new Text (reposHeaderViewModel.license != null ? reposHeaderViewModel.license : "--" , style: GSYConstant .subLightSmallText),
93+ ],
94+ ),
95+ new Padding (padding: new EdgeInsets .all (5.0 )),
96+ new Container (
97+ child:
98+ new Text (reposHeaderViewModel.repositoryDes != null ? reposHeaderViewModel.repositoryDes : "---" , style: GSYConstant .subLightSmallText),
99+ margin: new EdgeInsets .only (top: 6.0 , bottom: 2.0 ),
100+ alignment: Alignment .topLeft),
101+ new Container (
102+ child: new Text (infoText, style: GSYConstant .subLightSmallText),
103+ margin: new EdgeInsets .only (top: 6.0 , bottom: 2.0 , right: 5.0 ),
104+ alignment: Alignment .topRight),
105+ new Divider (
106+ color: Color (GSYColors .subTextColor),
107+ ),
108+ new Padding (
64109 padding: new EdgeInsets .all (0.0 ),
65- onPressed: () {},
66- child: new Text (reposHeaderViewModel.ownerName, style: GSYConstant .normalTextMitWhiteBold),
67- ),
68- new Text (" /" , style: GSYConstant .normalTextMitWhiteBold),
69- new Text (" " + reposHeaderViewModel.repositoryName, style: GSYConstant .normalTextMitWhiteBold),
70- ],
71- ),
72- new Padding (padding: new EdgeInsets .all (5.0 )),
73- new Row (
74- children: < Widget > [
75- new Text (reposHeaderViewModel.repositoryType != null ? reposHeaderViewModel.repositoryType : "--" ,
76- style: GSYConstant .subLightSmallText),
77- new Container (width: 5.3 , height: 1.0 ),
78- new Text (reposHeaderViewModel.repositorySize != null ? reposHeaderViewModel.repositorySize : "--" ,
79- style: GSYConstant .subLightSmallText),
80- new Container (width: 5.3 , height: 1.0 ),
81- new Text (reposHeaderViewModel.license != null ? reposHeaderViewModel.license : "--" , style: GSYConstant .subLightSmallText),
82- ],
83- ),
84- new Padding (padding: new EdgeInsets .all (5.0 )),
85- new Container (
86- child: new Text (reposHeaderViewModel.repositoryDes != null ? reposHeaderViewModel.repositoryDes : "---" , style: GSYConstant .subSmallText),
87- margin: new EdgeInsets .only (top: 6.0 , bottom: 2.0 ),
88- alignment: Alignment .topLeft),
89- new Container (
90- child: new Text (infoText, style: GSYConstant .subSmallText),
91- margin: new EdgeInsets .only (top: 6.0 , bottom: 2.0 , right: 5.0 ),
92- alignment: Alignment .topRight),
93- new Divider (
94- color: Color (GSYColors .subTextColor),
95- ),
96- new Padding (
97- padding: new EdgeInsets .all (0.0 ),
98- child: new Row (
99- crossAxisAlignment: CrossAxisAlignment .center,
100- mainAxisAlignment: MainAxisAlignment .center,
101- children: < Widget > [
102- _getBottomItem (
103- GSYICons .REPOS_ITEM_STAR ,
104- reposHeaderViewModel.repositoryStar,
105- () {
106- NavigatorUtils .gotoCommonList (context, reposHeaderViewModel.repositoryName, "user" , "repo_star" ,
107- userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
108- },
109- ),
110- new Container (width: 0.3 , height: 30.0 , color: Color (GSYColors .subLightTextColor)),
111- _getBottomItem (
112- GSYICons .REPOS_ITEM_FORK ,
113- reposHeaderViewModel.repositoryFork,
114- () {
115- NavigatorUtils .gotoCommonList (context, reposHeaderViewModel.repositoryName, "repository" , "repo_fork" ,
116- userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
117- },
118- ),
119- new Container (width: 0.3 , height: 30.0 , color: Color (GSYColors .subLightTextColor)),
120- _getBottomItem (
121- GSYICons .REPOS_ITEM_WATCH ,
122- reposHeaderViewModel.repositoryWatch,
123- () {
124- NavigatorUtils .gotoCommonList (context, reposHeaderViewModel.repositoryName, "user" , "repo_watcher" ,
125- userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
126- },
127- ),
128- new Container (width: 0.3 , height: 30.0 , color: Color (GSYColors .subLightTextColor)),
129- _getBottomItem (
130- GSYICons .REPOS_ITEM_ISSUE ,
131- reposHeaderViewModel.repositoryIssue,
132- () {},
133- ),
134- ],
135- )),
136- ],
110+ child: new Row (
111+ crossAxisAlignment: CrossAxisAlignment .center,
112+ mainAxisAlignment: MainAxisAlignment .center,
113+ children: < Widget > [
114+ _getBottomItem (
115+ GSYICons .REPOS_ITEM_STAR ,
116+ reposHeaderViewModel.repositoryStar,
117+ () {
118+ NavigatorUtils .gotoCommonList (context, reposHeaderViewModel.repositoryName, "user" , "repo_star" ,
119+ userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
120+ },
121+ ),
122+ new Container (width: 0.3 , height: 30.0 , color: Color (GSYColors .subLightTextColor)),
123+ _getBottomItem (
124+ GSYICons .REPOS_ITEM_FORK ,
125+ reposHeaderViewModel.repositoryFork,
126+ () {
127+ NavigatorUtils .gotoCommonList (context, reposHeaderViewModel.repositoryName, "repository" , "repo_fork" ,
128+ userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
129+ },
130+ ),
131+ new Container (width: 0.3 , height: 30.0 , color: Color (GSYColors .subLightTextColor)),
132+ _getBottomItem (
133+ GSYICons .REPOS_ITEM_WATCH ,
134+ reposHeaderViewModel.repositoryWatch,
135+ () {
136+ NavigatorUtils .gotoCommonList (context, reposHeaderViewModel.repositoryName, "user" , "repo_watcher" ,
137+ userName: reposHeaderViewModel.ownerName, reposName: reposHeaderViewModel.repositoryName);
138+ },
139+ ),
140+ new Container (width: 0.3 , height: 30.0 , color: Color (GSYColors .subLightTextColor)),
141+ _getBottomItem (
142+ GSYICons .REPOS_ITEM_ISSUE ,
143+ reposHeaderViewModel.repositoryIssue,
144+ () {},
145+ ),
146+ ],
147+ )),
148+ ],
149+ ),
137150 ),
138- )),
151+ ),
152+ ),
153+ ),
139154 new GSYSelectItemWidget ([
140155 GSYStrings .repos_tab_activity,
141156 GSYStrings .repos_tab_commits,
0 commit comments