Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
refact:增加中文导航
  • Loading branch information
ckken committed Mar 19, 2019
commit 5ffde01857836d6b38648f33c129da02d5b84d89
4 changes: 2 additions & 2 deletions lib/page/component/tabs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:efox_flutter/config/theme.dart' show AppTheme;
import 'package:efox_flutter/widget/index.dart' as WidgetRoot;
import 'package:efox_flutter/router/index.dart' show FluroRouter;
import 'package:efox_flutter/lang/index.dart' show AppLocalizations;
import 'package:efox_flutter/components/headerComp.dart' as Header;
//import 'package:efox_flutter/components/headerComp.dart' as Header;

class Index extends StatefulWidget {
final MainStateModel model;
Expand Down Expand Up @@ -75,7 +75,7 @@ class _IndexState extends State<Index>
isScrollable: true,
tabs: _mapList.map((v) {
return new Tab(
text: v.typeName,
text: AppLocalizations.$t(v.typeName),
/* icon: Icon(
IconData(
v.code,
Expand Down
6 changes: 3 additions & 3 deletions lib/widget/navigator/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ List widgets = [
),
ItemInfo(
widget: drawer.Index(),
code: 58928, // airline_seat_flat
code: 58928, // airline_seat_flat
title: drawer.Index.title,
),
ItemInfo(
Expand All @@ -62,7 +62,7 @@ List widgets = [
),
ItemInfo(
widget: popupmenubutton.Index(),
code: 57440, // art_track
code: 57440, // art_track
title: popupmenubutton.Index.title,
),
ItemInfo(
Expand All @@ -81,7 +81,7 @@ List widgetMap = [
ItemListInfo(
nameSpaces: nameSpaces,
widgetList: widgets,
typeName: 'navigator',
typeName: 'Navigator',
code: 58717,
)
];
13 changes: 11 additions & 2 deletions locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"widgetType": {
"regularLayout": "common layout"
},
"common" : {
"common": {
"changeLanguage": "显示中文",
"changeVersion": "checkVersion",
"compProgress": "Components Progress"
Expand All @@ -15,5 +15,14 @@
"loadNetwork": "Load Network Document Resources",
"loadLocal": "Load Local Document Resources"
},
"loading": "Loading"
"loading": "Loading",
"ScrollComponents": "ScrollComponents",
"Common": "Common",
"Form": "Form",
"Regular": "Regular",
"Navigator": "Navigator",
"BulletBox": "BulletBox",
"Animate": "Animate",
"Gestures": "Gestures",
"Vision": "Vision"
}
13 changes: 11 additions & 2 deletions locale/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"widgetType": {
"regularLayout": "常规布局"
},
"common" : {
"common": {
"changeLanguage": "Switch to English",
"changeVersion": "更新版本",
"compProgress": "组件进度"
Expand All @@ -15,5 +15,14 @@
"loadNetwork": "加载网络文档资源",
"loadLocal": "加载本地文档资源"
},
"loading": "加载中"
"loading": "加载中",
"ScrollComponents": "滚动",
"Common": "通用",
"Form": "表单",
"Regular": "布局",
"Navigator": "导航",
"BulletBox": "窗口",
"Animate": "动画",
"Gestures": "手势",
"Vision": "视觉"
}