-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Error running script that uses flutter library #35608
Comments
You cannot run code that depends on |
@jonahwilliams , @BondarenkoStas
I didn't know if it was possible or not, but I raised the issue because I wondered, shouldn't it be possible somehow? It's particularly useful for running Flutter dependent scripts. I required this long time ago for running Flutter benchmarks that don't create a UI. Flutter test is the only way I found to be able to run such scripts. The problem is that tests have assertions on (there is no way to disable them), they are therefore not good for benchmarking. Is there currently a way to run code that depends on dart:ui without using Flutter or Flutter test? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
When attempting to run a scripts that uses Element and Widgets, but no rendering, the only way I can run it, is using 'flutter test' command, but this does not satisfy my needs, since assertions cannot be disabled.
When I run it with dart command it throws error about not finding dart:ui on many packages, like:
Is this a bug?
The text was updated successfully, but these errors were encountered: