Commit 12ffd101 authored by Luke's avatar Luke

修复flutter page 不能及时dispose的问题

parent 15c8ff79
......@@ -172,6 +172,10 @@ static NSUInteger kInstanceCounter = 0;
if (!parent) {
//当VC被移出parent时,就通知flutter层销毁page
[self notifyWillDealloc];
if (self.engine.viewController == self) {
[self detatchFlutterEngine];
}
}
[super didMoveToParentViewController:parent];
}
......@@ -303,10 +307,6 @@ static NSUInteger kInstanceCounter = 0;
params:_params
uniqueId:self.uniqueIDString];
[super bridge_viewDidDisappear:animated];
if (self.engine.viewController == self) {
[self detatchFlutterEngine];
}
}
- (void)installSplashScreenViewIfNecessary {
......
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