Closed InMatrix closed 3 years ago
It would be nice if we can do it because it will encourage users running all scenarios of all packages without hesitation. Additionally we can give links to run on dartpad.dev for all code snippets. But I don't know if we can run app with dependencies on dartpad.dev.
It seems that changing the scenario-code folder to a runnable demo can be useful. I can make this change after #34 is merged to avoid conflicts.
DartPad.dev doesn't support packages yet, but there is some work being done towards that goal: https://github.com/dart-lang/dart-pad/issues/1813.
Closed by #42.
I was trying to find an easy to to run the snippets in the scenario-code folder. One way to do is is to turn this folder a Flutter project. I've published a branch to illustrate what it entails: https://github.com/flutter/uxr/tree/run_snippets/nav2-usability/scenario_code. All the snippets are moved into the lib folder of the project.
Is it a good idea?