Skip to content

Support Platform View creation #21

@lalomartins

Description

@lalomartins

https://docs.flutter.dev/platform-integration/ios/platform-views

I have to write a plugin to wrap a native library and, for reasons not easily avoidable, that includes writing a Platform View. It would be nice if I was able to do that in Klutter. AIUI it's mainly a matter of exposing the FlutterPlatformView and FlutterPlatformViewFactory classes in the Kotlin API? And then more importantly, automagically handling registration. Of course if you want to make it even fancier and generate the factory too, nobody will complain.

Caveats: I believe platform views only exist for Android and iOS. Not sure what Klutter would do in this case when building for other platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions