Setting Up Flutter
Flutter setup is straightforward and well-documented. Let's get your development environment ready so you can start building beautiful apps.
Prerequisites
- Operating System: Windows, macOS, or Linux
- Git: For version control
- IDE: VS Code or Android Studio
Installation Steps
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Flutter Setup Flow โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Step 1: Download Flutter SDK โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ git clone https://github.com/ โ โ
โ โ flutter/flutter.git โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ Step 2: Add to PATH โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ export PATH="$PATH:flutter/bin" โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ Step 3: Run Flutter Doctor โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ flutter doctor โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ Step 4: Create Project โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ flutter create my_app โ โ
โ โ cd my_app โ โ
โ โ flutter run โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Creating Your First Project
# Create a new Flutter project
flutter create my_first_app
# Navigate to the project
cd my_first_app
# Run the app on connected device or emulator
flutter run
Project Structure
my_first_app/
โโโ lib/ # Main Dart code
โ โโโ main.dart # App entry point
โโโ test/ # Unit and widget tests
โโโ android/ # Android-specific code
โโโ ios/ # iOS-specific code
โโโ web/ # Web-specific code
โโโ pubspec.yaml # Dependencies and assets
โโโ README.md