-
Notifications
You must be signed in to change notification settings - Fork 556
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
Dynamic adding a plugin #2697
Comments
DartPad doesn't support arbitrary packages right now, you can learn more about how package support works on this page: https://github.com/dart-lang/dart-pad/wiki/Package-and-plugin-support |
I think they were asking about hosting a DartPad box on their own site, pre-loaded with their own package. So not adding to the official DartPad site or for all DartPad users, but it could be useful on sites like https://riverpod.dev/ to be able to add any, eg, Riverpod packages to the DartPads on their site for readers to play around with, without petitioning for official approval. |
Right now, DartPad compiles user code on the server, which uses a Dart/Flutter project with a There are already packages that have forked this repo and hosted their own version (For example, https://docs.hivedb.dev) , but we don't maintain instructions since it's a somewhat involved process. |
Again, could be wrong, but I believe they mean by providing the source of the code itself, not just "any package on Pub". It can probably be implemented as "include this package's Dart files to be compiled, but hide it from the UI's If that's a security concern that makes sense, but in principle it's just like the user entering all that code by hand, or all the code being at the bottom of |
My intent was just to let the developer play with my plugin without setting up a new project locally. DartPad looks like perfect for that use case. On the other hand as I wrote initially in my feature request I am aware for the normal process and I don't think that it is necessary to become one of that exclusive packages. Also the point from Levi was already in my mind I could put everything in my |
At first I'm aware about Package and plugin support. I'm wondering if I can use dart-pad as a live preview of my plugin I'm planning to publish soon.
It seems that this is not possible out of the box, but is there a trick I could use? (By side to put all my classes into the sample code)
The text was updated successfully, but these errors were encountered: