Step 1: System Requirements
Ensure your system meets the following requirements:
- Operating System: Windows 10 or later (64-bit).
- Disk Space: 1.64 GB (minimum) for Flutter SDK, plus additional space for IDE/tools.
- Tools:
- Git for Windows: Download here.
- Command Prompt (cmd) or PowerShell.
Step 2: Download Flutter SDK
- Go to the official Flutter website.
- Download the Windows Flutter SDK
.zip
file. - Extract the
.zip
file to a directory, such asC:\src\flutter
.
Step 3: Add Flutter to System PATH
- Open Environment Variables:
- Search for "Environment Variables" in the Windows Start menu.
- Click Edit the system environment variables > Environment Variables.
- Under System variables, find and select the
Path
variable. - Click Edit and add the path to the Flutter
bin
directory (e.g.,C:\src\flutter\bin
).
Step 4: Verify Installation
- Open a new Command Prompt or PowerShell window.
- Run:
- This checks your installation and lists missing dependencies.
Step 5: Install Android Studio
- Download and install Android Studio.
- Open Android Studio and go to Settings > SDK Manager.
- Install the Android SDK and SDK Platform Tools.
- Install Android Virtual Device (AVD) for emulators.
- Set up an Android Emulator:
- Open AVD Manager in Android Studio.
- Create a virtual device.
Step 6: Install Flutter Plugins in Android Studio
- In Android Studio, go to File > Settings > Plugins.
- Search for "Flutter" and click Install.
- This also installs the Dart plugin automatically.
Step 7: Configure an Editor (Optional)
- Visual Studio Code (VS Code):
- Install VS Code.
- Add the Flutter and Dart extensions from the VS Code marketplace.
Step 8: Run a Test Flutter App
- Create a new project:
- Run the app on an emulator or connected device:
Troubleshooting Tips
- If
flutter doctor
shows errors, follow the recommended fixes. - Ensure Android SDK is properly installed and linked by setting the
ANDROID_HOME
environment variable. - Update Flutter regularly with:
With these steps, Flutter should be successfully installed on your Windows machine.
Comments
Post a Comment