Skip to content

Support creating flutter samples directly from the Flutter IntelliJ code when browsing Flutter docs #2807

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

Closed
jacob314 opened this issue Nov 12, 2018 · 6 comments

Comments

@jacob314
Copy link
Contributor

You can create samples from the command line as follows
flutter create --sample=chip.DeletableChipAttributes.onDeleted

And see the samples when browsing dart docs.

https://master-docs-flutter-io.firebaseapp.com/flutter/material/Chip/onDeleted.html

It would be great if from IntelliJ you could create a project with a sample with a single click while browsing docs.

@jacob314
Copy link
Contributor Author

@gspencergoog worked on support for the feature in the Flutter repo that we should leverage to implement IDE support.

An ideal implementation would show a clickable button in the Dart source code that would execute the flutter create and open a new intellij project in a separate window with the result of the create.

@jwren jwren added this to the On Deck milestone Nov 12, 2018
@jacob314
Copy link
Contributor Author

@stevemessick who is the expert on the project creation portions of the flutter intellij plugin.

@stevemessick
Copy link
Member

@jacob314 you give me too much credit :) Pretty sure it was @pq that implemented project creation for the original plugin. I just did the version for Android Studio.

It would be great if from IntelliJ you could create a project with a sample with a single click while browsing docs.
...
An ideal implementation would show a clickable button in the Dart source code that would execute the flutter create and open a new intellij project in a separate window with the result of the create.

Could you expand on that a bit? Is that new button visible when viewing code in the browser? IntelliJ?

@jacob314
Copy link
Contributor Author

The current support is in the browser. It would be nice to add support to IntelliJ as well.

@stevemessick
Copy link
Member

See my comments in #2708. I think this would work very well with the (proposed) tutorial.

@pq
Copy link
Contributor

pq commented Mar 19, 2019

Superseded by #2968

@pq pq closed this as completed Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants