flutter / uxr

UXR work for Flutter
BSD 3-Clause "New" or "Revised" License
227 stars 28 forks source link

Should we make routing snippets runnable from this repo? #39

Closed InMatrix closed 3 years ago

InMatrix commented 3 years ago

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?

xuanswe commented 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.

InMatrix commented 3 years ago

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.

InMatrix commented 3 years ago

Closed by #42.