Skip to content

Commit 2633ae1

Browse files
committed
my string
1 parent b5fde60 commit 2633ae1

2 files changed

Lines changed: 20 additions & 13 deletions

File tree

‎lib/common/style/GSYStyle.dart‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@ class GSYStrings {
200200
static const String home_dynamic = "动态";
201201
static const String home_trend = "趋势";
202202
static const String home_my = "我的";
203+
204+
205+
206+
static const String user_tab_repos = "仓库";
207+
static const String user_tab_fans = "粉丝";
208+
static const String user_tab_focus = "关注";
209+
static const String user_tab_star = "星标";
210+
static const String user_tab_honor = "荣耀";
203211
}
204212

205213
class GSYICons {

‎lib/widget/UserHeader.dart‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,35 +96,34 @@ class UserHeaderItem extends StatelessWidget {
9696
children: <Widget>[
9797
new Expanded(
9898
child: new Center(
99-
child: new Text("仓库\n" + userInfo.public_repos.toString(), textAlign: TextAlign.center, style: GSYConstant.subSmallText),
99+
child: new Text(GSYStrings.user_tab_repos + "\n" + userInfo.public_repos.toString(),
100+
textAlign: TextAlign.center, style: GSYConstant.subSmallText),
100101
),
101102
),
102-
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
103+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
103104
new Expanded(
104105
child: new Center(
105-
child: new Text("粉丝\n" + userInfo.followers.toString(), textAlign: TextAlign.center, style: GSYConstant.subSmallText),
106+
child: new Text(GSYStrings.user_tab_fans + "\n" + userInfo.followers.toString(),
107+
textAlign: TextAlign.center, style: GSYConstant.subSmallText),
106108
),
107109
),
108-
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
110+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
109111
new Expanded(
110112
child: new Center(
111-
child: new Text(
112-
"关注\n" + userInfo.following.toString(),
113-
textAlign: TextAlign.center,
114-
style: GSYConstant.subSmallText,
115-
),
113+
child: new Text(GSYStrings.user_tab_focus + "\n" + userInfo.following.toString(),
114+
textAlign: TextAlign.center, style: GSYConstant.subSmallText),
116115
),
117116
),
118-
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
117+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
119118
new Expanded(
120119
child: new Center(
121-
child: new Text("星标\n---", textAlign: TextAlign.center, style: GSYConstant.subSmallText),
120+
child: new Text(GSYStrings.user_tab_star + "\n---", textAlign: TextAlign.center, style: GSYConstant.subSmallText),
122121
),
123122
),
124-
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
123+
new Container(width: 0.3, height: 40.0, color: Color(GSYColors.subLightTextColor)),
125124
new Expanded(
126125
child: new Center(
127-
child: new Text("荣耀\n---", textAlign: TextAlign.center, style: GSYConstant.subSmallText),
126+
child: new Text(GSYStrings.user_tab_honor + "\n---", textAlign: TextAlign.center, style: GSYConstant.subSmallText),
128127
),
129128
),
130129
],

0 commit comments

Comments
 (0)