Commit 8e7b26dd authored by yangwu.jia's avatar yangwu.jia

去除engine lazy的启动模式

parent e64f6a31
......@@ -37,7 +37,6 @@ public interface IPlatform {
int IMMEDIATELY = 0; //立即启动引擎
int ANY_ACTIVITY_CREATED = 1; //当有任何Activity创建时,启动引擎
int LAZY = 2; //尽可能延后启动引擎(通常是首页Flutter页面加载时)
/**
* get current application
......
......@@ -52,7 +52,7 @@ public class MyApplication extends FlutterApplication {
@Override
public int whenEngineStart() {
return LAZY;
return ANY_ACTIVITY_CREATED;
}
});
}
......
......@@ -60,20 +60,6 @@ class FlutterBoost {
PrePushRoute prePush,
PostPushRoute postPush}) {
WidgetsBinding.instance.addPostFrameCallback((_){
singleton.channel.invokeMethod<Map>('pageOnStart').then((Map pageInfo){
if (pageInfo == null || pageInfo.isEmpty) return;
// if (pageInfo.containsKey("name") &&
// pageInfo.containsKey("params") &&
// pageInfo.containsKey("uniqueId")) {
// ContainerCoordinator.singleton.nativeContainerDidShow(
// pageInfo["name"], pageInfo["params"], pageInfo["uniqueId"]);
// }
});
});
return (BuildContext context, Widget child) {
assert(child is Navigator, 'child must be Navigator, what is wrong?');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment