Skip to content

Commit b5fde60

Browse files
committed
tab icon
1 parent 41063ff commit b5fde60

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

‎lib/common/style/GSYStyle.dart‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ class GSYStrings {
195195
static const String network_error_unknown = "其他异常";
196196

197197
static const String load_more_not = "没有更多数据";
198+
199+
200+
static const String home_dynamic = "动态";
201+
static const String home_trend = "趋势";
202+
static const String home_my = "我的";
198203
}
199204

200205
class GSYICons {

‎lib/page/HomePage.dart‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,24 @@ class HomePage extends StatelessWidget {
1616
drawer: new HomeDrawer(),
1717
type: GSYTabBarWidget.BOTTOM_TAB,
1818
tabItems: [
19-
new Tab(icon: new Icon(GSYICons.MAIN_DT)),
20-
new Tab(icon: new Icon(GSYICons.MAIN_QS)),
21-
new Tab(icon: new Icon(GSYICons.MAIN_MY)),
19+
new Tab(
20+
child: new Column(
21+
mainAxisAlignment: MainAxisAlignment.center,
22+
children: <Widget>[new Icon(GSYICons.MAIN_DT, size: 16.0), new Text(GSYStrings.home_dynamic)],
23+
),
24+
),
25+
new Tab(
26+
child: new Column(
27+
mainAxisAlignment: MainAxisAlignment.center,
28+
children: <Widget>[new Icon(GSYICons.MAIN_QS, size: 16.0), new Text(GSYStrings.home_trend)],
29+
),
30+
),
31+
new Tab(
32+
child: new Column(
33+
mainAxisAlignment: MainAxisAlignment.center,
34+
children: <Widget>[new Icon(GSYICons.MAIN_MY, size: 16.0), new Text(GSYStrings.home_my)],
35+
),
36+
),
2237
],
2338
tabViews: [
2439
new DynamicPage(),

0 commit comments

Comments
 (0)