alexeyinkin opened a new issue, #22220: URL: https://github.com/apache/beam/issues/22220
### What needs to happen? Currently we support many sources to load code from: - Standard example by path. - Multiple standard examples by paths (one per SDK). [coming soon] - User-shared snippet by ID. [coming soon] - Default example by each SDK. - Code from 'code' query string param. - Nothing. The loading is now done in `PlaygroundPageProviders` widget with a chain of `if`s. It has the following drawbacks: - There is no concept of an object that describes where to load from. - Query string params are accessed in multiple places in those `if`s with some code duplication. - We cannot easily change the precedence of sources. - We cannot easily write a doc describing the precedence. - Loading examples is not a widget's job. Flutter has [Router API](https://medium.com/flutter/learning-flutters-new-navigation-and-routing-system-7c9068155ade) to solve all those drawbacks. We should migrate to it. ### Issue Priority Priority: 2 ### Issue Component Component: beam-playground -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
