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

opt

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