Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sites/docs/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
{ "source": "/cookbook/testing/widget-test-tap-drag", "destination": "/cookbook/testing/widget/tap-drag", "type": 301 },
{ "source": "/deployment/fastlane-cd", "destination": "/deployment/cd#fastlane", "type": 301 },
{ "source": "/get-started", "destination": "/install", "type": 301 },
{ "source": "/get-started/custom", "destination": "/install/custom", "type": 301 },
{ "source": "/get-started/custom", "destination": "/install", "type": 301 },
{ "source": "/get-started/codelab", "destination": "/learn/pathway", "type": 301 },
{ "source": "/get-started/codelab-web", "destination": "/learn", "type": 301 },
{ "source": "/get-started/editor", "destination": "/tools/editors", "type": 301 },
Expand All @@ -182,6 +182,8 @@
{ "source": "/get-started/uninstall", "destination": "/install/uninstall", "type": 301 },
{ "source": "/get-started/web", "destination": "/platform-integration/web/building", "type": 301 },
{ "source": "/get-started/quick", "destination": "/install/quick", "type": 301 },
{ "source": "/install/custom", "destination": "/install", "type": 301 },
{ "source": "/install/with-vs-code", "destination": "/install/quick", "type": 301 },
{ "source": "/ios-14", "destination": "/platform-integration/ios/ios-debugging", "type": 301 },
{ "source": "/ios-project-migration", "destination": "https://web.archive.org/web/20220614103526/https://docs.flutter.dev/development/ios-project-migration", "type": 301 },
{ "source": "/layout", "destination": "/ui/layout", "type": 301 },
Expand Down
9 changes: 0 additions & 9 deletions sites/docs/lib/_sass/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,6 @@
}
}

#call-to-action {
padding: 0.5rem 1rem;
display: none;

@media (min-width: 1024px) {
display: unset;
}
}

#header-search {
display: none;
position: relative;
Expand Down
9 changes: 0 additions & 9 deletions sites/docs/lib/src/components/layout/header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import 'package:jaspr/dom.dart';
import 'package:jaspr/jaspr.dart';
import 'package:jaspr_content/jaspr_content.dart';
import 'package:site_shared/components/common/button.dart';
import 'package:site_shared/components/common/material_icon.dart';
import 'package:site_shared/components/layout/menu_toggle.dart';
import 'package:site_shared/components/layout/site_switcher.dart';
Expand Down Expand Up @@ -108,14 +107,6 @@ class DashHeader extends StatelessComponent {
),
const ThemeSwitcher(),
const SiteSwitcher(),

if (activeEntry != ActiveNavEntry.learn)
const Button(
id: 'call-to-action',
style: ButtonStyle.filled,
content: 'Get started',
href: '/learn/pathway',
),
if (context.page.data['sidenav'] != null) const MenuToggle(),
],
),
Expand Down
16 changes: 11 additions & 5 deletions sites/docs/src/_includes/docs/get-started/setup-next-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@
alt="A representation of Flutter on multiple devices.">
</div>
<div class="card-header">
<span class="card-title">Build for other platforms</span>
<span class="card-title">Set up a target platform</span>
</div>
<div class="card-content">
<ul>
<li>
<a class="text-button" href="/platform-integration/android/setup">Target Android</a>
<a class="text-button" href="/platform-integration/web/setup">Target the web</a>
</li>
<li>
<a class="text-button" href="/platform-integration/android/setup">Target Android</a>
</li>
<li class="macos-only">
<a class="text-button" href="/platform-integration/ios/setup">Target iOS</a>
</li>
<li>
<li class="macos-only">
<a class="text-button" href="/platform-integration/macos/setup">Target macOS</a>
</li>
<li>
<li class="windows-only">
<a class="text-button" href="/platform-integration/windows/setup">Target Windows</a>
</li>
<li>
<li class="linux-only">
<a class="text-button" href="/platform-integration/linux/setup">Target Linux</a>
</li>
</ul>
Expand All @@ -41,6 +44,9 @@
<li>
<a class="text-button" href="/learn/pathway">Learn the fundamentals</a>
</li>
<li>
<a class="text-button" href="/reference/create-new-app">Create a new Flutter app</a>
</li>
<li>
<a class="text-button"
href="https://www.youtube.com/watch?v=b_sQ9bMltGU&list=PLjxrf2q8roU23XGwz3Km7sQZFTdB996iG">
Expand Down
150 changes: 63 additions & 87 deletions sites/docs/src/_includes/docs/install/quick.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
Learn how to use any Code OSS-based editor, such as VS Code,
to set up your Flutter development environment and
test drive Flutter's developer experience.

If you've developed with Flutter before,
or you prefer to use a different editor or IDE,
you can follow the [custom setup instructions][] instead.

:::note What you'll achieve

- Install the software prerequisites for Flutter.
- Use VS Code to download and install Flutter.
- Create a new Flutter app from a sample template.
- Try out Flutter development features like stateful hot reload.

:::

[custom setup instructions]: /install/custom
Learn how to use [Visual Studio Code (VS Code)][VS Code] or any compatible
Code OSS-based editor (such as [Antigravity][], [Cursor][], or [Windsurf][])
to quickly install and set up your Flutter development environment.

If you prefer a different editor or IDE,
you can [install Flutter manually][], or
configure target platforms and manage an existing SDK in
[Install and set up Flutter][].

[VS Code]: https://code.visualstudio.com
[Antigravity]: https://antigravity.google/
[Cursor]: https://cursor.com/
[Windsurf]: https://windsurf.com/
[install Flutter manually]: /install/manual
[Install and set up Flutter]: /install
Comment thread
conooi marked this conversation as resolved.

## Confirm your development platform {: #dev-platform}

The instructions on this page are configured to cover
installing and trying out Flutter on a **Windows**{:.selected-os-text} device.

If you'd like to follow the instructions for a different OS,
please select one of the following.
These instructions are configured for **Windows**{:.selected-os-text}.
If you're using a different operating system, select it below:

<OSSelector />

Expand Down Expand Up @@ -64,24 +58,21 @@ first install the following tools.
1. <h3>Download and install Visual Studio Code</h3>

To quickly install Flutter, then edit and debug your apps,
[install and set up Visual Studio Code][vscode-install].

You can instead install and use any other Code OSS-based editor
that supports VS Code extensions.
If you choose to do so, for the rest of this article,
assume VS Code refers to the editor of your choice.
[install and set up Visual Studio Code][vscode-install]
(or your preferred Code OSS-based editor).

{: .steps .chromeos-only}

1. <h3>Install git</h3>
1. <h3>Install the Xcode command-line tools</h3>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed with-vs-code.md page included a .macos-only warning callout right before this step noting that Flutter is deprecating support for Intel-based Macs (x64), which is still in sites/docs/src/content/install/manual.md. Was dropping that warning here intentional, or should we carry it over to keep both install guides in sync?


**If you already have git installed, skip to the next
**If you already have Git installed, skip to the next
step: Download and install Visual Studio Code.**

There are a few ways to install git on your Mac,
but the way we recommend is by using XCode.
This will be important when you target your
builds for iOS or macOS.
Download the Xcode command-line tools to get access to
the command-line tools that Flutter relies on, including Git.
This is also required when you target your builds for iOS or macOS.

To download the tools, run the following command in your preferred terminal:

```console
$ xcode-select --install
Expand All @@ -94,12 +85,8 @@ first install the following tools.
1. <h3>Download and install Visual Studio Code</h3>

To quickly install Flutter, then edit and debug your apps,
[install and set up Visual Studio Code][vscode-install].

You can instead install and use any other Code OSS-based editor
that supports VS Code extensions.
If you choose to do so, for the rest of this article,
assume VS Code refers to the editor of your choice.
[install and set up Visual Studio Code][vscode-install]
(or your preferred Code OSS-based editor).

{: .steps .macos-only}

Expand All @@ -113,12 +100,8 @@ first install the following tools.
1. <h3>Download and install Visual Studio Code</h3>

To quickly install Flutter, then edit and debug your apps,
[install and set up Visual Studio Code][vscode-install].

You can instead install and use any other Code OSS-based editor
that supports VS Code extensions.
If you choose to do so, for the rest of this article,
assume VS Code refers to the editor of your choice.
[install and set up Visual Studio Code][vscode-install]
(or your preferred Code OSS-based editor).

{: .steps .windows-only}

Expand All @@ -145,12 +128,8 @@ first install the following tools.
1. <h3>Download and install Visual Studio Code</h3>

To quickly install Flutter, then edit and debug your apps,
[install and set up Visual Studio Code][vscode-install].

You can instead install and use any other Code OSS-based editor
that supports VS Code extensions.
If you choose to do so, for the rest of this article,
assume VS Code refers to the editor of your choice.
[install and set up Visual Studio Code][vscode-install]
(or your preferred Code OSS-based editor).

{: .steps .linux-only}

Expand All @@ -160,47 +139,38 @@ first install the following tools.
[git-install]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
[vscode-install]: https://code.visualstudio.com/docs/setup/setup-overview

## Install and set up Flutter {: #install}

Now that you've installed Git and VS Code,
follow these steps to use VS Code to install and set up Flutter.

:::note Download manually
If you prefer to manually install Flutter,
follow the instructions in [Install Flutter manually][].
:::
<a id="install-flutter" aria-hidden="true"></a>

1. <h3>Launch VS Code</h3>
## Install and set up Flutter {: #install}

If not already open, open VS Code by searching for it with Spotlight
or opening it manually from the directory where it's installed.
Now that you've installed the prerequisites,
use VS Code to download and set up the Flutter SDK:

1. <h3>Add the Flutter extension to VS Code</h3>
1. <h3>Install the Flutter extension</h3>

To add the Dart and Flutter extensions to VS Code,
visit the [Flutter extension's marketplace page][flutter-vscode],
then click **Install**.
If prompted by your browser, allow it to open VS Code.
Open VS Code, then install the
[Flutter extension from the VS Code Marketplace][flutter-vscode]
or press <kbd class="special-key">Cmd/Ctrl</kbd> +
<kbd>Shift</kbd> + <kbd>X</kbd> to open the **Extensions** view,
search for `Flutter`, and click **Install**.
Installing the Flutter extension also installs the Dart extension.

1. <h3>Install Flutter with VS Code</h3>

1. Open the command palette in VS Code.
1. Open the Command Palette in VS Code.

Go to **View** <span aria-label="and then">></span> **Command Palette**
or press <kbd class="special-key">Cmd/Ctrl</kbd> +
<kbd>Shift</kbd> + <kbd>P</kbd>.

1. In the command palette, type `flutter`.

1. Select **Flutter: New Project**.
1. In the Command Palette, type `flutter` and select
**Flutter: New Project**.

1. VS Code prompts you to locate the Flutter SDK on your computer.
Select **Download SDK**.

1. When the **Select Folder for Flutter SDK** dialog displays,
choose where you want to install Flutter.

1. Click **Clone Flutter**.
choose where you want to install Flutter and click **Clone Flutter**.

While downloading Flutter, VS Code displays this pop-up notification:

Expand All @@ -212,7 +182,7 @@ follow the instructions in [Install Flutter manually][].
If you suspect that the download has hung, click **Cancel** then
start the installation again.

1. Click **Add SDK to PATH**.
1. Once the download finishes, click **Add SDK to PATH**.

When successful, a notification displays:

Expand All @@ -221,7 +191,6 @@ follow the instructions in [Install Flutter manually][].
```

1. VS Code might display a Google Analytics notice.

If you agree, click **OK**.

1. To ensure that Flutter is available in all terminals:
Expand All @@ -231,19 +200,26 @@ follow the instructions in [Install Flutter manually][].

{:type="a"}

:::note
The VS Code setup process might check for Android Studio, which can result in a warning if it's not installed.
You can safely ignore this if you're targeting other platforms (like web, iOS, or macOS), as the installation will still succeed.
Afterward, run `flutter doctor` to verify your installation.
:::
1. <h3>Validate your setup</h3>

1. <h3>Troubleshoot installation issues</h3>
To verify your installation, open the Command Palette
(<kbd class="special-key">Cmd/Ctrl</kbd> +
<kbd>Shift</kbd> + <kbd>P</kbd>) and select
**Flutter: Run Flutter Doctor**, or run `flutter doctor`
in your terminal.

:::note What to expect in `flutter doctor`
You only need checkmarks (`[✓]`) for **Flutter**, **VS Code**,
and the platforms you plan to target
(for example, **Chrome** lets you build for the web immediately).
You can safely ignore `[!]` or `[✗]` warnings for tools like
Android Studio or Xcode until you're ready to target those platforms.
:::

If you encounter any issues during installation,
check out [Flutter installation troubleshooting][troubleshoot].
consult [Flutter installation troubleshooting][troubleshoot].

{:.steps}

[Install Flutter manually]: /install/manual
[flutter-vscode]: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[troubleshoot]: /install/troubleshoot
4 changes: 2 additions & 2 deletions sites/docs/src/content/install/add-to-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Adding Flutter to your `PATH` allows you to use the

:::tip
If you haven't downloaded Flutter yet,
follow [Set up and test drive Flutter][] instead.
follow [Install Flutter with VS Code][] instead.
:::

<div class="card-grid">
Expand Down Expand Up @@ -50,7 +50,7 @@ follow [Set up and test drive Flutter][] instead.
</a>
</div>

[Set up and test drive Flutter]: /install/quick
[Install Flutter with VS Code]: /install/quick

## Windows

Expand Down
Loading
Loading