Skip to content

Commit ce3e3e3

Browse files
committed
Merge branch 'test'
2 parents 8caba03 + bdc059f commit ce3e3e3

File tree

21 files changed

+207
-42
lines changed

21 files changed

+207
-42
lines changed

lib/components/widgetComp.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class IndexState extends State<Index> {
100100
// 加载页面
101101
if (this.model.config.state.isPro) {
102102
FluroRouter.router.navigateTo(context,
103-
'/webview?url=${Uri.encodeComponent(this.model.config.state.env.GithubAssetOrigin + url.replaceAll(RegExp('/index.md'), ''))}');
103+
'/webview?url=${Uri.encodeComponent(this.model.config.state.env.githubAssetOrigin + url.replaceAll(RegExp('/index.md'), ''))}');
104104
} else {
105105
// 加载本地
106106
String mdStr = await FileUtils.readLocaleFile(url);
@@ -147,7 +147,7 @@ class IndexState extends State<Index> {
147147
icon: Icon(Icons.share),
148148
onPressed: () {
149149
final String msg =
150-
this.model.config.state.env.GithubAssetOrigin + this.mdUrl;
150+
this.model.config.state.env.githubAssetOrigin + this.mdUrl;
151151
AppShare.shareText(msg);
152152
},
153153
),

lib/config/development.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class Config {
22
String versionUrl = 'https://raw.githubusercontent.com/efoxTeam/flutter-ui/master/assets/config.json';
3+
String githubWeb = 'https://efoxteam.github.io/flutter-ui/';
34
String githubAssetOrigin =
45
'https://github.com/efoxTeam/flutter-ui/blob/master/';
56
String githubMarkdownOrigin =

lib/config/production.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class Config {
22
String versionUrl = 'https://raw.githubusercontent.com/efoxTeam/flutter-ui/master/assets/config.json';
3+
String githubWeb = 'https://efoxteam.github.io/flutter-ui/';
34
String githubAssetOrigin =
45
'https://github.com/efoxTeam/flutter-ui/blob/master/';
56
String githubMarkdownOrigin =

lib/lang/index.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class AppLocalizations {
2424
static void setProxy(Function setState, AppLocalizationsDelegate delegate) async {
2525
_setState = setState;
2626
_delegate = delegate;
27+
print("_delegate = $_delegate");
2728
}
2829

2930
static get languageCode => _inst._locale.languageCode;

lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ class MainAppState extends State<MainApp> {
5050
'deviceLocale=$deviceLocale supportedLocales=$supportedLocales');
5151
Locale _locale = supportedLocales.contains(deviceLocale)
5252
? deviceLocale
53-
: Locale('en');
53+
: Locale('zh');
5454
return _locale;
5555
},
5656
onGenerateTitle: (context) {
5757
// 设置多语言代理
5858
AppLocalizations.setProxy(setState, _delegate);
59-
return '-';
59+
return 'flutter';
6060
},
6161
localizationsDelegates: [
6262
GlobalMaterialLocalizations.delegate,

lib/page/mine/index.dart

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import 'package:flutter/material.dart';
22
import 'package:efox_flutter/lang/index.dart' show AppLocalizations;
3+
import 'package:efox_flutter/router/index.dart' show FluroRouter;
34

45
class _IndexState extends State<Index> {
56
static String _version = '';
67

78
@override
89
void initState() {
910
super.initState();
10-
print('-------init');
1111
_version = widget.model.config.state.version;
1212
}
1313

14-
List<dynamic> _getList () {
14+
List<dynamic> _getList() {
1515
return [
1616
{
1717
'name': AppLocalizations.$t('common.changeLanguage'),
@@ -24,9 +24,14 @@ class _IndexState extends State<Index> {
2424
{
2525
'name': AppLocalizations.$t('common.changeEnvironment'),
2626
'icon': 57539, // import_export
27+
},
28+
{
29+
'name': AppLocalizations.$t('common.compProgress'),
30+
'icon': 57709, // low_priority
2731
}
2832
];
2933
}
34+
3035
actionsEvent(int index) {
3136
switch (index) {
3237
case 0:
@@ -40,6 +45,12 @@ class _IndexState extends State<Index> {
4045
case 2:
4146
widget.model.dispatch('config', 'setEnv');
4247
break;
48+
case 3:
49+
FluroRouter.router.navigateTo(
50+
context,
51+
'/webview?url=${Uri.encodeComponent(widget.model.config.state.env.githubWeb)}',
52+
);
53+
break;
4354
}
4455
}
4556

lib/widget/animate/animationcontroller/demo.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class _AnimationDemoState extends State<AnimationDemo>
2727

2828
@override
2929
void initState() {
30-
// TODO: implement initState
3130
super.initState();
3231
animationDemoController = AnimationController(
3332
// value: 32,
@@ -54,7 +53,6 @@ class _AnimationDemoState extends State<AnimationDemo>
5453

5554
@override
5655
void dispose() {
57-
// TODO: implement dispose
5856
super.dispose();
5957
animationDemoController.dispose();
6058
}

lib/widget/bulletbox/bottomsheet/demo.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class _IndexState extends State<Index> {
3737
}
3838

3939
Future _openShowBottomSheet () async {
40-
final optionBs = await showBottomSheet(
40+
await showBottomSheet(
4141
context: context,
4242
builder: (BuildContext context) {
4343
return new Container(

lib/widget/bulletbox/expansionPanel/demo.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class _IndexState extends State<Index> {
2020
List<ExpansionPanelItem> _expansionPanelItems;
2121
@override
2222
void initState() {
23-
// TODO: implement initState
2423
super.initState();
2524
_expansionPanelItems = <ExpansionPanelItem>[
2625
ExpansionPanelItem(

lib/widget/common/container/index.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import 'package:flutter/material.dart';
22
import 'package:efox_flutter/components/widgetComp.dart' as WidgetComp;
3-
// import 'demo.dart' as Demo;
3+
import 'package:efox_flutter/widget/regular/container/demo.dart' as Demo;
44

55
class Index extends StatefulWidget {
66
static String title = 'Container';
7-
static String mdUrl = 'docs/widget/common/container/index.md';
7+
static String mdUrl = 'docs/widget/regular/container/index.md';
88
static String originCodeUrl = 'https://docs.flutter.io/flutter/widgets/Container-class.html';
99

1010
@override
@@ -19,7 +19,7 @@ class _IndexState extends State<Index> {
1919
originCodeUrl: Index.originCodeUrl,
2020
mdUrl: Index.mdUrl,
2121
demoChild: [
22-
// Demo.Index(),
22+
Demo.Index(),
2323
],
2424
);
2525
}

0 commit comments

Comments
 (0)