Skip to content

Commit 94c3c24

Browse files
committed
add user header
1 parent 18aec8d commit 94c3c24

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎lib/widget/UserHeader.dart‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class UserHeaderItem extends StatelessWidget {
2121
new GSYCardItem(
2222
color: Color(GSYColors.primaryValue),
2323
margin: EdgeInsets.all(0.0),
24-
shape: new RoundedRectangleBorder(borderRadius: BorderRadius.only(bottomLeft: Radius.circular(4.0), bottomRight: Radius.circular(4.0))),
24+
shape: new RoundedRectangleBorder(borderRadius: BorderRadius.only(bottomLeft: Radius.circular(10.0), bottomRight: Radius.circular(10.0))),
2525
child: new Padding(
2626
padding: new EdgeInsets.only(left: 10.0, top: 10.0, right: 10.0, bottom: 10.0),
2727
child: new Column(
@@ -88,6 +88,9 @@ class UserHeaderItem extends StatelessWidget {
8888
margin: new EdgeInsets.only(top: 6.0, bottom: 2.0),
8989
alignment: Alignment.topLeft),
9090
new Padding(padding: EdgeInsets.all(10.0)),
91+
new Divider(
92+
color: Color(GSYColors.subLightTextColor),
93+
),
9194
new Row(
9295
crossAxisAlignment: CrossAxisAlignment.start,
9396
children: <Widget>[
@@ -96,11 +99,13 @@ class UserHeaderItem extends StatelessWidget {
9699
child: new Text("仓库\n" + userInfo.public_repos.toString(), textAlign: TextAlign.center, style: GSYConstant.subSmallText),
97100
),
98101
),
102+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
99103
new Expanded(
100104
child: new Center(
101105
child: new Text("粉丝\n" + userInfo.followers.toString(), textAlign: TextAlign.center, style: GSYConstant.subSmallText),
102106
),
103107
),
108+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
104109
new Expanded(
105110
child: new Center(
106111
child: new Text(
@@ -110,11 +115,13 @@ class UserHeaderItem extends StatelessWidget {
110115
),
111116
),
112117
),
118+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
113119
new Expanded(
114120
child: new Center(
115121
child: new Text("星标\n---", textAlign: TextAlign.center, style: GSYConstant.subSmallText),
116122
),
117123
),
124+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
118125
new Expanded(
119126
child: new Center(
120127
child: new Text("荣耀\n---", textAlign: TextAlign.center, style: GSYConstant.subSmallText),

0 commit comments

Comments
 (0)