File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed
Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class Index extends StatelessWidget {
3535 '/webview?url=${Uri .encodeComponent (model .configInfo .assetOrigin + url )}' );
3636 } else {
3737 // 加载本地
38- String mdStr = await FileUtils .readLocaleFile (this .mdUrl );
38+ String mdStr = await FileUtils .readLocaleFile (url );
3939 Navigator .of (context).push (
4040 MaterialPageRoute (builder: (BuildContext context) {
4141 return BaseComp .Index (
Original file line number Diff line number Diff line change 1+ class Config {
2+
3+ }
Original file line number Diff line number Diff line change 1+ import 'development.dart' as Development;
2+ import 'production.dart' as Production;
3+
4+ const bool isPro = false ;
5+
6+ Object env = isPro ? Production .Config : Development .Config ;
Original file line number Diff line number Diff line change 1+ class Config {
2+
3+ }
Original file line number Diff line number Diff line change 11import 'package:scoped_model/scoped_model.dart' ;
2+ import 'package:efox_flutter/config/index.dart' as Config;
23
34class ConfigInfo {
4- bool isPro = false ;
5+ bool isPro = Config .isPro ;
56 String origin = 'https://github.com/efoxTeam/flutter-ui/blob/master/docs/widget/scrollview/gridview/code.md' ;
67 String assetOrigin = 'https://github.com/efoxTeam/flutter-ui/blob/master/' ;
78}
You can’t perform that action at this time.
0 commit comments