Windows Setup
Environment Setup for Windows
These instructions are for Windows 10/11 only. These instructions are distilled and customized from https://docs.flutter.dev/get-started/install.
Please do not hesitate to ask the instructor for help. There are a lot of steps, and they can be confusing. Reach out on Slack or by email.
Install Git
Lab computer: Git is already installed on UNCW lab machines, but let’s make sure you can access it:
- Hit the Windows key and search for “environment variables”. Select “Edit environment variables for your account”
- Select the “Path” variable then click the “Edit” button.
- Select a blank line, then click “Browse”
- Browse to the C:\Program Files\Git\cmd directory and click the “Okay” button.
- Hit “Okay” until the environment variable windows are closed.
Personal computer: Install the Git program if you do not already have it installed.
- Download the 64-bit standalone installer
- Leave all the default options checked, except:
- “Choosing the default editor used by Git”: select “Use the Nano editor…”
Install the Flutter SDK
- Download flutter_windows_3.27.1-stable.zip.
- Find the file in your Explorer. Right-click and unzip the file in its current location. This will either create a
flutter/
directory or aflutter_windows_3.27.1-stable/
directory with aflutter/
directory inside it. You want the plain directory namedflutter/
. - Move this
flutter/
directory to your%HOME%
folder identified in Lab: Environment Setup, e.g.,c:\users\laymanl\
- Note: If your
%HOME%
folder has spaces in it, create a folder calledc:\dev
and use it as your%HOME%
folder.
- Note: If your
- Update your path:
- From the Start search bar, enter ‘env’ and select Edit environment variables for your account
- In the top ‘User variables’ section, do you have a variable named
Path
?- If Yes, select the
Path
variable and click Edit. Then click Browse, then navigate to and select%HOME%/flutter/bin
. - If No, click New and type
Path
as the variable name with exact capitalization. Then click the Browse Directory button and select the%HOME%/flutter/bin
folder.
- If Yes, select the
- Now, open a terminal or console window and type
flutter doctor
. You should see a bunch of Flutter output. If you see “Command not found” or something similar, contact the instructor for help.
Set up Android development
If you work on Windows, you must use Android even if you own an iPhone. You must have a Mac to develop for iPhone.
Follow the instructions in Lab: Android Setup