-
Notifications
You must be signed in to change notification settings - Fork 3
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
code parameter couldn't be applied to dartpad, Live demo is also broken. #6
Comments
Here is the most relevant info: The new format is probably closer to what you linked: dart-lang/dart-pad#2702. Here is the new documentation on the recommended way to inject: https://github.com/dart-lang/site-shared/tree/main/packages/inject_dartpad, and that is probably where I'd start . I'm not sure if it supports all of the varieties as before, but I'm happy to take a look at a PR if you want to give it a go. There really isn't much in this library since it is just a simple wrapper around a HTML platform view. |
I have the same issue to display and execute flutter code in the dartpad. Is it planed to update the widget ? It would be awesome ! |
Fixed it by switching to an old dartpad url for now. The new embedding doesn't support all of the same options as before, and so it will take longer to figure out how best to evolve this package. Eventually I will migrate to the new embedding, since it should be much faster (doesn't use iframes). |
Hi @TimWhiting , Thanks for the update. Today, I want to update the library for my project for checking in. But I got the following error on the library file. Is there anything that I'm missing, I'm trying to run this for flutter 3.10.6. My current configuration as follows.
My flutter config as follows:
|
Try pinning this package to the version 2.1.1 which will work on old versions of flutter if you cannot update your flutter sdk. |
Thanks for the help, I was able to run the 2.1.1 version with Flutter 3.19.0 sdk with success. 🚀🎉 |
Hello,
Dartpad widget didn't show the code that we passed as parameter, It shows the default code snippet.
You can replicate the issue, by simply visiting the dart_pad live demo.
Dartpad now opened with the default code.
void main() { for (int i = 0; i < 10; i++) { print('hello ${i + 1}'); } }
How can we fix this?
Maybe the issue is related with this dartpad issue
Thanks in advance.
Best, Burcu.
The text was updated successfully, but these errors were encountered: