Commit 7c6ed2d8 authored by Luke's avatar Luke Committed by justin

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

parent 3620756d
......@@ -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];
}
......@@ -308,10 +312,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