Skip to content

[Flutter] Support for projects. #1290

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
johnsonmh opened this issue Sep 24, 2019 · 4 comments
Closed

[Flutter] Support for projects. #1290

johnsonmh opened this issue Sep 24, 2019 · 4 comments
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Milestone

Comments

@johnsonmh
Copy link

I know that this is a big ask, but it would be great to one day have full "projects", with multiple files and even assets in a dartpad. Similar to how codepen has "projects", example: https://codepen.io/waldo/project/editor/DYwanN

This would mean supporting:

  1. Multiple dart files. They could be nested in directories, but there has to be a top level main.dart file with a main() { ... } method, this is what the "Run" button will call.
    • Making imports work. Local imports would probably be enough and easier, I'm not sure how this would all relate to pub...
  2. Supporting assets. It would be nice to be able to include images in a project and have them render in a Flutter app. Again I'm not sure how this would work with pub and pubspec.yaml
@RedBrogdon RedBrogdon added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug labels Sep 30, 2019
@RedBrogdon RedBrogdon added this to the Backlog milestone Sep 30, 2019
@RedBrogdon
Copy link
Contributor

These are good suggestions, but they definitely fall into the realm of 2020 planning rather than something we can work on right now.

It's also possible--and this isn't meant as a criticism of your suggestion!--that it might be better to focus on simplicity for DartPad rather than investing in support for larger projects. As Dart and Flutter grow, some of the companies/groups that produce fully featured online IDEs may take an interest and add Flutter support to their tools. This is something we'll need to consider as we figure out our vision for where DartPad goes beyond an updated playground/embeds and Flutter support.

@johnsonmh
Copy link
Author

@RedBrogdon Totally agreed. This particular feature is essentially crossing the threshold between "live snippet sharing tool" to "web-based IDE". Both are valuable products, but it's a huge product decision that requires a lot of thought/planning to determine what is better to invest in. Thanks for considering this!

@Luckey-Elijah
Copy link

I think this would be an excellent feature to add. As more Dart and Flutter libraries create extensive documentation (like riverpod and bloc for example), those libraries would benefit from demonstrating examples and use cases directly in their documentation websites with project-based DartPads.

I hope adds the potential added value to the Dart/Flutter community. 😄

@parlough
Copy link
Member

With the newest iteration of DartPad, we're focusing on simplicity as RedBrogdon suggested above. As a result, we dropped multi-file support and don't intend to support it in the short term.

For online support of Flutter projects, consider another tool such as Project IDX or Codespaces. IDX in particular has first-class support for creating Flutter projects :D

If anyone still feels strongly about DartPad's support for larger projects, please feel free to continue the discussion here or in a new issue. Thanks again!

@parlough parlough closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
@parlough parlough added the closed-not-planned Closed as we don't intend to take action on the reported issue label Jun 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants