@@ -19,6 +19,7 @@ class ReposHeaderItem extends StatelessWidget {
1919
2020 ReposHeaderItem (this .reposHeaderViewModel, this .selectItemChanged) : super ();
2121
22+ ///底部仓库状态信息,比如star数量等
2223 _getBottomItem (IconData icon, String text, onPressed) {
2324 return new Expanded (
2425 child: new Center (
@@ -54,13 +55,15 @@ class ReposHeaderItem extends StatelessWidget {
5455 new GSYCardItem (
5556 color: new Color (GSYColors .primaryValue),
5657 child: new Container (
58+ ///背景头像
5759 decoration: new BoxDecoration (
5860 image: new DecorationImage (
5961 fit: BoxFit .cover,
6062 image: new NetworkImage (reposHeaderViewModel.ownerPic),
6163 ),
6264 ),
6365 child: new Container (
66+ ///透明黑色遮罩
6467 decoration: new BoxDecoration (
6568 color: Color (GSYColors .primaryDarkValue & 0xA0FFFFFF ),
6669 ),
@@ -71,6 +74,7 @@ class ReposHeaderItem extends StatelessWidget {
7174 children: < Widget > [
7275 new Row (
7376 children: < Widget > [
77+ ///用户名
7478 new RawMaterialButton (
7579 constraints: new BoxConstraints (minWidth: 0.0 , minHeight: 0.0 ),
7680 padding: new EdgeInsets .all (0.0 ),
@@ -80,25 +84,33 @@ class ReposHeaderItem extends StatelessWidget {
8084 child: new Text (reposHeaderViewModel.ownerName, style: GSYConstant .normalTextActionWhiteBold),
8185 ),
8286 new Text (" /" , style: GSYConstant .normalTextMitWhiteBold),
87+
88+ ///仓库名
8389 new Text (" " + reposHeaderViewModel.repositoryName, style: GSYConstant .normalTextMitWhiteBold),
8490 ],
8591 ),
8692 new Row (
8793 children: < Widget > [
88- new Text (reposHeaderViewModel.repositoryType ?? "--" ,
89- style: GSYConstant .subLightSmallText),
94+ ///仓库语言
95+ new Text (reposHeaderViewModel.repositoryType ?? "--" , style: GSYConstant .subLightSmallText),
9096 new Container (width: 5.3 , height: 1.0 ),
91- new Text (reposHeaderViewModel.repositorySize ?? "--" ,
92- style: GSYConstant .subLightSmallText),
97+
98+ ///仓库大小
99+ new Text (reposHeaderViewModel.repositorySize ?? "--" , style: GSYConstant .subLightSmallText),
93100 new Container (width: 5.3 , height: 1.0 ),
101+
102+ ///仓库协议
94103 new Text (reposHeaderViewModel.license ?? "--" , style: GSYConstant .subLightSmallText),
95104 ],
96105 ),
106+
107+ ///仓库描述
97108 new Container (
98- child:
99- new Text (reposHeaderViewModel.repositoryDes ?? "---" , style: GSYConstant .subLightSmallText),
109+ child: new Text (reposHeaderViewModel.repositoryDes ?? "---" , style: GSYConstant .subLightSmallText),
100110 margin: new EdgeInsets .only (top: 6.0 , bottom: 2.0 ),
101111 alignment: Alignment .topLeft),
112+
113+ ///创建状态
102114 new Container (
103115 child: new Text (infoText, style: GSYConstant .subLightSmallText),
104116 margin: new EdgeInsets .only (top: 6.0 , bottom: 2.0 , right: 5.0 ),
@@ -108,6 +120,8 @@ class ReposHeaderItem extends StatelessWidget {
108120 ),
109121 new Padding (
110122 padding: new EdgeInsets .all (0.0 ),
123+
124+ ///创建数值状态
111125 child: new Row (
112126 crossAxisAlignment: CrossAxisAlignment .center,
113127 mainAxisAlignment: MainAxisAlignment .center,
@@ -152,6 +166,7 @@ class ReposHeaderItem extends StatelessWidget {
152166 ),
153167 ),
154168 ),
169+ ///底部头
155170 new GSYSelectItemWidget ([
156171 GSYStrings .repos_tab_activity,
157172 GSYStrings .repos_tab_commits,
0 commit comments