Skip to content

Commit 21ebfe9

Browse files
committed
Merge branch 'dev' of https://github.com/efoxTeam/flutter-ui into dev
# Conflicts: # lib/page/component/tabs.dart
2 parents 0e53181 + 5ffde01 commit 21ebfe9

File tree

7 files changed

+36
-14
lines changed

7 files changed

+36
-14
lines changed

android/app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) {
3232
}
3333

3434
android {
35-
compileSdkVersion 27
35+
compileSdkVersion 28
3636

3737
lintOptions {
3838
disable 'InvalidPackage'
@@ -42,10 +42,10 @@ android {
4242
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4343
applicationId "com.flutter.beer"
4444
minSdkVersion 16
45-
targetSdkVersion 27
45+
targetSdkVersion 28
4646
versionCode flutterVersionCode.toInteger()
4747
versionName flutterVersionName
48-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
48+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4949
}
5050

5151
signingConfigs {
@@ -79,8 +79,8 @@ flutter {
7979

8080
dependencies {
8181
testImplementation 'junit:junit:4.12'
82-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
83-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
82+
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
83+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
8484
//firebase
8585
implementation 'com.google.firebase:firebase-core:16.0.8'
8686
//Crashlytics SDK

android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
2+
android.useAndroidX=true
3+
android.enableJetifier=true

lib/page/component/tabs.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'package:efox_flutter/config/theme.dart' show AppTheme;
55
import 'package:efox_flutter/widget/index.dart' as WidgetRoot;
66
import 'package:efox_flutter/router/index.dart' show FluroRouter;
77
import 'package:efox_flutter/lang/index.dart' show AppLocalizations;
8+
import 'package:efox_flutter/components/headerComp.dart' as Header;
89

910
class Index extends StatefulWidget {
1011
final MainStateModel model;
@@ -69,11 +70,12 @@ class _IndexState extends State<Index>
6970

7071
Widget _TabBar() {
7172
return TabBar(
73+
indicatorColor: Color(AppTheme.secondColor),
7274
controller: _tabController,
7375
isScrollable: true,
7476
tabs: _mapList.map((v) {
7577
return new Tab(
76-
text: v.typeName,
78+
text: AppLocalizations.$t(v.typeName),
7779
/* icon: Icon(
7880
IconData(
7981
v.code,

lib/widget/navigator/index.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ List widgets = [
3737
),
3838
ItemInfo(
3939
widget: drawer.Index(),
40-
code: 58928, // airline_seat_flat
40+
code: 58928, // airline_seat_flat
4141
title: drawer.Index.title,
4242
),
4343
ItemInfo(
@@ -62,7 +62,7 @@ List widgets = [
6262
),
6363
ItemInfo(
6464
widget: popupmenubutton.Index(),
65-
code: 57440, // art_track
65+
code: 57440, // art_track
6666
title: popupmenubutton.Index.title,
6767
),
6868
ItemInfo(
@@ -81,7 +81,7 @@ List widgetMap = [
8181
ItemListInfo(
8282
nameSpaces: nameSpaces,
8383
widgetList: widgets,
84-
typeName: 'navigator',
84+
typeName: 'Navigator',
8585
code: 58717,
8686
)
8787
];

locale/en.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"widgetType": {
77
"regularLayout": "common layout"
88
},
9-
"common" : {
9+
"common": {
1010
"changeLanguage": "显示中文",
1111
"changeVersion": "checkVersion",
1212
"compProgress": "Components Progress"
@@ -23,5 +23,14 @@
2323
"loadNetwork": "Load Network Document Resources",
2424
"loadLocal": "Load Local Document Resources"
2525
},
26-
"loading": "Loading"
26+
"loading": "Loading",
27+
"ScrollComponents": "ScrollComponents",
28+
"Common": "Common",
29+
"Form": "Form",
30+
"Regular": "Regular",
31+
"Navigator": "Navigator",
32+
"BulletBox": "BulletBox",
33+
"Animate": "Animate",
34+
"Gestures": "Gestures",
35+
"Vision": "Vision"
2736
}

locale/zh.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"widgetType": {
77
"regularLayout": "常规布局"
88
},
9-
"common" : {
9+
"common": {
1010
"changeLanguage": "Switch to English",
1111
"changeVersion": "更新版本",
1212
"compProgress": "组件进度"
@@ -23,5 +23,14 @@
2323
"loadNetwork": "网络优良,可选择加载线上文档资源",
2424
"loadLocal": "网络较差时,可选择加载本地文档资源"
2525
},
26-
"loading": "加载中"
26+
"loading": "加载中",
27+
"ScrollComponents": "滚动",
28+
"Common": "通用",
29+
"Form": "表单",
30+
"Regular": "布局",
31+
"Navigator": "导航",
32+
"BulletBox": "窗口",
33+
"Animate": "动画",
34+
"Gestures": "手势",
35+
"Vision": "视觉"
2736
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: A new Flutter project.
77
# Both the version and the builder number may be overridden in flutter
88
# build by specifying --build-name and --build-number, respectively.
99
# Read more about versioning at semver.org.
10-
version: 1.0.0+1
10+
version: 1.0.1+1
1111

1212
environment:
1313
sdk: ">=2.1.0 <3.0.0"

0 commit comments

Comments
 (0)