Dart And Flutter Installation
🚀 Dart and Flutter Installation Guide
🛠️ Step 1: Installing Dart
Dart is the programming language behind Flutter. Here's how to install it:
🖥️ For Windows Users:
- Download the Dart SDK from the Dart SDK Downloads page.
- Extract the ZIP file to a folder (e.g.,
C:\Dart
). - Update your PATH:
- Search for Edit the system environment variables in the Start menu.
- In the System Properties, click Environment Variables.
- Add
C:\Dart\dart-sdk\bin
to the PATH variable.
- Verify installation by running:
dart --version
🍎 For macOS Users:
- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Dart using:
brew tap dart-lang/dart
brew install dart - Verify installation by running:
dart --version
🐧 For Linux Users:
- Add the Dart APT repository:
sudo apt update
sudo apt install apt-transport-https
sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list' - Install Dart:
sudo apt update
sudo apt install dart - Update your PATH by adding:
export PATH="$PATH:/usr/lib/dart/bin"
- Verify installation by running:
dart --version
🖌️ Step 2: Installing Flutter
Flutter is the UI toolkit to build beautiful apps. Here's how to install it:
🖥️ For Windows Users:
- Download the Flutter SDK from the Flutter SDK Downloads page.
- Extract the ZIP file to a folder (e.g.,
C:\flutter
). - Update your PATH by adding
C:\flutter\bin
. - Run:
flutter doctor
Comments
Post a Comment