flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

[Bug]: iOS的原生页面,嵌入了一块Flutter的页面,怎么去释放这个页面

Open TomasWell opened this issue 1 year ago • 1 comments

请描述遇到的问题,以及您所期望的正确的结果

iOS的原生页面,嵌入了一块Flutter的页面,怎么去释放这个页面 期望原生页面返回的时候,flutter页面跟着释放

请说明如何操作会遇到上述问题

No response

在下面填入关键复现代码

复现的平台

Both

Flutter SDK版本

3.10.6

FlutterBoost版本

4.5.6

是否延迟初始化FlutterBoost

No

解决方案

TomasWell avatar May 29 '24 09:05 TomasWell

  • (void)dealloc { [self.flutterViewController detachFlutterEngineIfNeeded]; [self.flutterViewController notifyWillDealloc];

    NSLog(@"ARTVideoPlayerViewController --- %@ --- dealloc ---",self.page); }

这样就可以了,找了半天

TomasWell avatar May 29 '24 09:05 TomasWell