-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Reworked getting started experience #800
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
d7b4cbb
Initial cut at Android Studio and Terminal experiences
mit-mit 37a59b8
Use OS steps in the Terminal case
mit-mit 54f62a5
Make new getting started default in this branch
mit-mit dafe244
Link to new page
mit-mit 70b6e14
Stub out complete end to end flow
mit-mit e59fa96
A bit more refactoring
mit-mit c477f7b
System requirements and path config
mit-mit 24d0a06
Finish create/run
mit-mit 48af134
Setup Editor
mit-mit 2a1b6ac
Cleanup
mit-mit 813a45c
Finish everything, make links check
mit-mit ff379aa
Merge with master
mit-mit 5d0c460
Remove files pertaining to future setup flow
mit-mit 11ad3d7
Remove file
mit-mit 1154ae2
Remove file
mit-mit de92a83
Fixes
mit-mit 70b259d
Change URL of getting started codelab per Shams feedback
mit-mit 58741de
Change 'tutorial' to 'codelab'
mit-mit 07b7329
Fix links
mit-mit 638bc37
Review feedback from Seth
mit-mit 4e9392b
Rename pages per feedback
mit-mit 29f1a27
Rename title
mit-mit 028bede
Fix transition links to new section titles
mit-mit f147234
Consistency
mit-mit 3eb1a30
Merge remote-tracking branch 'upstream/master' into getting-started-beta
mit-mit d53dd15
Review feedback Filip + merge with master
mit-mit b24bbec
Add IDEA
mit-mit 6c058f4
DanTup review feedback
mit-mit 7a3b094
Merge remote-tracking branch 'upstream/master' into getting-started-beta
mit-mit 860da34
Update version
mit-mit b81044d
Increase tab padding a bit
mit-mit edb40c7
Remove Next Step from Install summary page per offline feedback it wa…
mit-mit 90e0406
Simplify the install landing page
mit-mit 2c051b6
Add back step numbers in sidebar
mit-mit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| $tab-accent-color: $brand-color; | ||
|
|
||
| // General tabs. These are intended for instructions that vary according to user | ||
| // selection, e.g. around editor choice in getting started. | ||
|
|
||
| ul.tabs__top-bar { | ||
| margin: 0; | ||
| padding: 0; | ||
| list-style: none; | ||
| } | ||
|
|
||
| ul.tabs__top-bar li { | ||
| background: none; | ||
| color: $grey-color; | ||
| display: inline-block; | ||
| padding: 5px 12px; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| ul.tabs__top-bar li.current{ | ||
| background: $tab-accent-color; | ||
| color: $background-color; | ||
| } | ||
|
|
||
| .tabs__content{ | ||
| display: none; | ||
| border: 1px solid $tab-accent-color; | ||
| padding: 10px; | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| .tabs__content.current{ | ||
| display: inherit; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| --- | ||
| layout: page | ||
| title: "Get Started: Configure Editor" | ||
| permalink: /get-started/editor/ | ||
| --- | ||
|
|
||
| You can build apps with Flutter using any text editor combioned with our | ||
| command-line tools. However, we recommend using one of our editor plugins for an | ||
| even better experience. With our editor plugins, you get code completion, syntax | ||
| highlighting, widget edditing assists, run & debug support, and more. | ||
|
|
||
| Follow the steps before to add an editor plugin for Android Studio, IntelliJ, or | ||
| VS Code. If you want to use a different editor, that's OK, simply skip ahead to | ||
| [Next step: Create and run your first app](/get-started/test-drive/). | ||
|
|
||
| <ul class="tabs__top-bar"> | ||
| <li class="tab-link current" data-tab="tab-install-androidsstudio">Android Studio</li> | ||
| <li class="tab-link" data-tab="tab-install-vscode">VS Code</li> | ||
| </ul> | ||
|
|
||
| <div id="tab-install-androidsstudio" class="tabs__content current" markdown="1"> | ||
|
|
||
| ## Android Studio setup | ||
|
|
||
| *Android Studio:* A complete, integrated IDE experience for Flutter. | ||
|
|
||
| ### Install Android Studio | ||
|
|
||
| * [Android Studio](https://developer.android.com/studio/index.html), version 3.0 or later. | ||
|
|
||
| Alternatively, you can also use IntelliJ: | ||
|
|
||
| * [IntelliJ IDEA Community](https://www.jetbrains.com/idea/download/), version 2017.1 or later. | ||
| * [IntelliJ IDEA Ultimate](https://www.jetbrains.com/idea/download/), version 2017.1 or later. | ||
|
|
||
| ### Install the Flutter and Dart plugins | ||
|
|
||
| Flutter is supported by two plugins: | ||
|
|
||
| * The `Flutter` plugin powers Flutter developer workflows (running, | ||
| debugging, hot reload, etc.). | ||
| * The `Dart` plugin offers code analysis (code validation as you type, code | ||
| completions, etc.). | ||
|
|
||
| To install these: | ||
|
|
||
| 1. Start Android Studio. | ||
| 1. Open plugin preferences (**Preferences>Plugins** on macOS, | ||
| **File>Settings>Plugins** on Windows & Linux). | ||
| 1. Select **Browse repositories…**, select the Flutter plug-in and click | ||
| `install`. | ||
| 1. Click `Yes` when prompted to install the Dart plugin. | ||
| 1. Click `Restart` when prompted. | ||
|
|
||
| </div> | ||
|
|
||
| <div id="tab-install-vscode" class="tabs__content" markdown="1"> | ||
|
|
||
| ## Visual Studio Code (VS Code) setup | ||
|
|
||
| *VS Code:* A light-weight editor with Flutter run and debug support. | ||
|
|
||
| ### Install VS Code | ||
|
|
||
| * [VS Code](https://code.visualstudio.com/), version 1.20.1 or later. | ||
|
|
||
| ### Install the Dart Code plugin | ||
|
|
||
| 1. Start VS Code | ||
| 1. Invoke **View>Command Palette...** | ||
| 1. Type 'install', and select the **'Extensions: Install Extension'** action | ||
| 1. Enter `dart code` in the search field, select 'Dart Code' in the list, and | ||
| click **Install** | ||
| 1. Select 'OK' to reload VS Code | ||
|
|
||
| ## Validate your setup with the Flutter Doctor | ||
|
|
||
| 1. Invoke **View>Command Palette...** | ||
| 1. Type 'doctor', and select the **'Flutter: Run Flutter Doctor'** action | ||
| 1. Review the output in the 'OUTPUT' pane for any issues | ||
|
|
||
| </div> | ||
|
|
||
| ## Next step | ||
|
|
||
| Let's take Flutter for a test drive: create a first project, run it, and | ||
| experiencee 'hot reload'. | ||
|
|
||
| [Next step: Test drive Flutter](/get-started/test-drive/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| layout: page | ||
| title: "Get Started: Overview" | ||
| permalink: /get-started/ | ||
| --- | ||
|
|
||
| Welcome to the Flutter Get Started Experience. We will help you: | ||
|
|
||
| * Install the Flutter framework | ||
| * Install the dependencies of the Flutter framework | ||
| * Create, run, and make changes to your first Flutter app | ||
| * Learn core Flutter concepts through a small step-by-step lesson | ||
| * Suggest some next steps | ||
|
|
||
| ## Next step | ||
|
|
||
| [Next step: Install Flutter](/get-started/install/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| layout: page | ||
| title: "Get Started: Install" | ||
| permalink: /get-started/install/ | ||
| --- | ||
|
|
||
| Please select the operating system on which you are installing Flutter: | ||
|
|
||
| <div class="homepage__button_row"> | ||
| <a href="/setup-windows" class="get-started-button">Install on Windows</a> | ||
| <a href="/setup-macos" class="get-started-button">Install on macOS</a> | ||
| <a href="/setup-linux" class="get-started-button">Install on Linux</a> | ||
| </div> | ||
|
|
||
| {% include note.html content="_Flutter is an alpha, open-source project_. | ||
| _If you're in China, please read | ||
| [this wiki article](https://github.com/flutter/flutter/wiki/Using-Flutter-in-China) | ||
| first_." | ||
| %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| --- | ||
| layout: page | ||
| title: "Get Started: Learn More" | ||
| permalink: /get-started/learn-more/ | ||
| --- | ||
| * Learn more about the Flutter framework | ||
|
|
||
| {% comment %} | ||
| Once the "Flutter for React" doc (etc) are done, add here. | ||
| {% endcomment %} | ||
|
|
||
| * [Building Layouts in Flutter](/tutorials/layout/) tutorial | ||
| * [Add Interactivity](/tutorials/interactive/) tutorial | ||
| * [A Tour of the Flutter Widget Framework](/widgets-intro/) | ||
| * [Flutter for Android Developers](/flutter-for-android/) | ||
|
|
||
|
|
||
| * Other resources | ||
|
|
||
| * [Flutter Cookbook](/cookbook/) | ||
| * [From Java to Dart](https://codelabs.developers.google.com/codelabs/from-java-to-dart/#0) codelab | ||
| * [Bootstrap into Dart: learn more about the language](/bootstrap-into-dart/) | ||
|
|
||
| Please reach out to us at our [mailing list][mailinglist]. We'd love | ||
| to hear from you! | ||
|
|
||
| Happy Fluttering! | ||
|
|
||
| [mailinglist]: mailto:flutter-dev@googlegroups.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
visual studio code , or vs code ?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, color me wrong. I thought it was "VSCode", but I checked and it's "VS Code". I have to change my docs. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Microsoft uses both 'Visual Studio Code' and 'VC Code'. I personally much prefer the latter as it's less likely to cause confusion with "big" Visual Studio.