-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Higher-level Plugin api akin to flutter-rs #16
Comments
Have you taken look at the examples? There are rust channel handlers registered with message manager. https://github.com/nativeshell/examples/blob/main/src/platform_channels.rs If you want to you can even package your handler as a crate, all you'd need as an entry point is for your plugin to register with message manager. |
Yeah I've seen the examples. But if you compare the api to the flutter-rs api it's way more cumbersome to work with. For reference here you can find the usage of the |
I see. Would something like this work? https://gist.github.com/knopp/139f7b2b02ce4f59e2649bc1560276c3 The |
So it could be something like this and this is how it would be used: https://github.com/nativeshell/examples/blob/nativeshell_plugin/src/file_open_dialog.rs |
I'm working on an application written in rust with flutter as the UI and was using flutter-rs until now.
I've implemented some custom channels and flutter-rs has a nice abstraction for flutter plugins as well as the different channel types.
Do you have any intentions to implement something similar?
The text was updated successfully, but these errors were encountered: