mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-05-20 06:16:20 +08:00
update: 完成markdown动态更新
This commit is contained in:
@ -17,7 +17,7 @@ import 'package:flutter_go/event/event_bus.dart';
|
||||
import 'package:flutter_go/event/event_model.dart';
|
||||
import 'package:event_bus/event_bus.dart';
|
||||
import 'package:flutter_go/model/widget.dart';
|
||||
|
||||
import 'package:flutter_go/standard_pages/index.dart';
|
||||
//import 'views/welcome_page/index.dart';
|
||||
|
||||
SpUtil sp;
|
||||
@ -28,7 +28,6 @@ class MyApp extends StatefulWidget {
|
||||
final router = new Router();
|
||||
Routes.configureRoutes(router);
|
||||
// 这里设置项目环境
|
||||
Application.env = ENV.PRODUCTION;
|
||||
Application.router = router;
|
||||
}
|
||||
|
||||
@ -189,13 +188,13 @@ void main() async {
|
||||
await provider.init(true);
|
||||
sp = await SpUtil.getInstance();
|
||||
new SearchHistoryList(sp);
|
||||
await DataUtils.getWidgetTreeList().then((List json) {
|
||||
Application.widgetTree = WidgetTree.buildWidgetTree(json);
|
||||
if (Application.env == ENV.DEV) {
|
||||
|
||||
}
|
||||
await DataUtils.getWidgetTreeList().then((List json) {
|
||||
List data = WidgetTree.insertDevPagesToList(json, StandardPages().getLocalList());
|
||||
Application.widgetTree = WidgetTree.buildWidgetTree(data);
|
||||
print("Application.widgetTree>>>> ${Application.widgetTree}");
|
||||
});
|
||||
db = Provider.db;
|
||||
runApp(new MyApp());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user