Skip to content

Running app with plugins #240

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

Closed
Surprajs opened this issue Mar 22, 2022 · 2 comments
Closed

Running app with plugins #240

Surprajs opened this issue Mar 22, 2022 · 2 comments

Comments

@Surprajs
Copy link

It says in the README that with flutter-pi "you can now theoretically run every flutter app you want using flutter-pi, including apps using packages & plugins, just that you'd have to build the platform side of the plugins you'd like to use yourself". Does it mean that you can use plugins that are only available for Android/iOS? If yes, exactly should it be done?

@ardera
Copy link
Owner

ardera commented Mar 23, 2022

Does it mean that you can use plugins that are only available for Android/iOS?

No, Flutter plugins are dart code + some native C/Java/ObjC/... code (depending on platform)

If you try to use a plugin that only supports android and iOS with flutter-pi, the dart side would most likely not be a problem, but the native code would be missing. So you'd have to write the native code to make it work yourself.

If yes, exactly should it be done?

Do you mean how to make a flutter plugin work with flutter-pi?

@Surprajs
Copy link
Author

Thank you for your answer.

Do you mean how to make a flutter plugin work with flutter-pi?
No, I was asking about the Android/iOS plugins in case it was possible to use them without any additional work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants