alibaba / alibaba/flutter_boost

[Bug]:PlatformView 不会 dealloc

Open
#1,883 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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

Native直接打开 Flutter的 Platformview,在返回原生页面,Platformview不会 dealloc;
而原生打开 Flutter 页面,Flutter 页面打开 一个 Platformview 再返回上一页面会 dealloc。

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

flutter_boost-3.0-null-safety-release.2 的 example 中的 iOS 项目,用 XCode 打开 Runner 工程,将UIViewControllerDemo 中的 options.pageName = @"flutterPage" ,改为 options.pageName = @"platformview/animation",运行项目,点击
 Push Flutter Page ,进入 “platformview/animation” 页面,再返回,这时 FLNativeView的 _view 没有销毁。

### 在下面填入关键复现代码

```
```

### 复现的平台

iOS

### Flutter SDK版本

2.5.3

### FlutterBoost版本

flutter_boost-3.0-null-safety-release.2

### 是否延迟初始化FlutterBoost

No

### 解决方案

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce this in the flutter_boost-3.0-null-safety-release.2 example iOS Runner project using Xcode: in UIViewControllerDemo, set options.pageName to "platformview/animation", tap Push Flutter Page, and return. Start by tracing the PlatformView lifecycle around FLNativeView._view. Done means the view is deallocated after returning to the native page.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter, ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.