Commit 23d41278 authored by Jidong Chen's avatar Jidong Chen

opt

parent e998f5dd
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
static dispatch_once_t onceToken; static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{ dispatch_once(&onceToken, ^{
if([platform respondsToSelector:@selector(useBoost2useBoost2)] && platform.useBoost2){ if([platform respondsToSelector:@selector(useBoost2)] && platform.useBoost2){
_factory = FLB2Factory.new; _factory = FLB2Factory.new;
}else{ }else{
_factory = FLBFactory.new; _factory = FLBFactory.new;
......
...@@ -67,8 +67,6 @@ class FlutterBoost { ...@@ -67,8 +67,6 @@ class FlutterBoost {
return (BuildContext context, Widget child) { return (BuildContext context, Widget child) {
assert(child is Navigator, 'child must be Navigator, what is wrong?'); assert(child is Navigator, 'child must be Navigator, what is wrong?');
//Logger.log('Running flutter boost opt!');
final BoostContainerManager manager = BoostContainerManager( final BoostContainerManager manager = BoostContainerManager(
key: _instance.containerManagerKey, key: _instance.containerManagerKey,
initNavigator: child, initNavigator: child,
...@@ -89,7 +87,6 @@ class FlutterBoost { ...@@ -89,7 +87,6 @@ class FlutterBoost {
BoostMessageChannel.methodChannel = _methodChannel; BoostMessageChannel.methodChannel = _methodChannel;
_methodChannel.setMethodCallHandler((MethodCall call){ _methodChannel.setMethodCallHandler((MethodCall call){
if(call.method == "__event__"){ if(call.method == "__event__"){
//Handler broadcast event.
return BoostMessageChannel.handleEventCall(call); return BoostMessageChannel.handleEventCall(call);
}else if(call.method == "didDisappearPageContainer"){ }else if(call.method == "didDisappearPageContainer"){
String pageName = call.arguments["pageName"]; String pageName = call.arguments["pageName"];
......
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