-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated SDK install, flutter doctor sections
- Loading branch information
Showing
12 changed files
with
205 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,2 +1,35 @@ | ||
## Install the Flutter SDK | ||
|
||
To install the Flutter SDK, you can use the Flutter plugin | ||
within VS Code or download and install the Flutter bundle. | ||
|
||
{% comment %} Nav tabs {% endcomment -%} | ||
<ul class="nav nav-tabs" id="flutter-install" role="tablist"> | ||
<li class="nav-item"> | ||
<a class="nav-link active" id="vscode-tab" href="#vscode" role="tab" aria-controls="vscode" aria-selected="true">Use VS Code to install</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" id="download-tab" href="#download" role="tab" aria-controls="download" aria-selected="false">Download and install</a> | ||
</li> | ||
</ul> | ||
|
||
{% comment %} Tab panes {% endcomment -%} | ||
<div class="tab-content"> | ||
|
||
<div class="tab-pane active" id="vscode" role="tabpanel" aria-labelledby="vscode-tab" markdown="1"> | ||
|
||
{% include docs/install/flutter/vscode.md os=include.os %} | ||
|
||
</div> | ||
|
||
<div class="tab-pane" id="download" role="tabpanel" aria-labelledby="download-tab" markdown="1"> | ||
|
||
{% include docs/install/flutter/download.md os=include.os %} | ||
|
||
</div> | ||
</div> | ||
{% comment %} End: Tab panes. {% endcomment -%} | ||
|
||
If you have installed all prerequisites and the Flutter SDK, | ||
you should be able to start developing Flutter on | ||
{{include.os}} for {{include.target}}. |
This file contains 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,56 @@ | ||
### Download then install Flutter | ||
{:.no_toc} | ||
|
||
{% assign os = include.os %} | ||
|
||
1. Download the following installation bundle to get the latest | ||
{{site.sdk.channel}} release of the Flutter SDK: | ||
|
||
[(loading...)](#){:.download-latest-link-{{os}}.btn.btn-primary} | ||
|
||
For other release channels, and older builds, | ||
check out the [SDK archive][]. | ||
|
||
1. Extract the zip file. | ||
|
||
1. Move the contained `flutter` directory | ||
to where you want to store the Flutter SDK. | ||
|
||
{{site.alert.warning}} | ||
Do not install Flutter to a directory or path that meets | ||
one or both of the following conditions: | ||
|
||
- The path contains special characters or spaces. | ||
- The path requires elevated privileges. | ||
|
||
As an example, `C:\Program Files\` fails both conditions. | ||
You could use `%USERPROFILE%\flutter` or `D:\dev\flutter`. | ||
{{site.alert.end}} | ||
|
||
[SDK archive]: {{site.url}}/release/archive | ||
|
||
### Update your Windows PATH variable | ||
{:.no_toc} | ||
|
||
{% include docs/help-link.md location='win-path' section='#unable-to-find-the-flutter-command' %} | ||
|
||
To run Flutter commands in PowerShell, | ||
add Flutter to the `PATH` environment variable. | ||
|
||
1. In the **Start** search bar, type `env``. | ||
|
||
1. Select **Edit environment variables for your account**. | ||
|
||
1. Under **User variables** check for the **Path** entry. | ||
|
||
* If the entry exists, prepend the full path to `flutter\bin` | ||
followed with a semicolon (`;`) to separate the new value from | ||
existing values. | ||
|
||
* If the entry doesn't exist, | ||
create a new user variable named **Path**. | ||
|
||
Set its value to the full path to `flutter\bin`. | ||
|
||
1. For these changes to take effect, | ||
close and reopen any existing command prompts and PowerShell instances. |
This file contains 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,20 @@ | ||
### Use VS Code to install Flutter | ||
{:.no_toc} | ||
|
||
1. To open the Command Palette, | ||
press <kbd>Control</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>. | ||
|
||
1. In the Command Palette, type `flutter`. | ||
|
||
1. Select **Flutter: New Project**. | ||
|
||
1. VS Code prompts you to locate the Flutter SDK on your computer. | ||
|
||
1. If you have the Flutter SDK installed, click **Locate SDK**. | ||
|
||
1. If you do not have the Flutter SDK installed, click **Download SDK**. | ||
|
||
This option sends you the Flutter install page if you have not installed | ||
Git for Windows as directed in the [development tools prerequisites][]. | ||
|
||
[development tools prerequisites]: #development-tools |
This file contains 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 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 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 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 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 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