Skip to content

[ios platform view] FlutterPlatformViewsController::Reset should not assume all the subviews of flutterView are platformviews #125999

Description

@cyanglaz

In FlutterPlatformViewsController::Reset, we assumed all the subviews of flutter_view are PlatformViews and we removed them.

Although it is currently true, it might not in the future and this code is easy to cause issue silently.
We should only remove platform views from the flutterView.

The easiest way is probably to check the view type before removing.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsengineflutter/engine related. See also e: labels.platform-iosiOS applications specifically

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions