0
0
Fluttermobile~10 mins

Flutter SDK installation

Choose your learning style9 modes available
Introduction

Flutter SDK lets you build mobile apps easily. Installing it sets up your computer to create Flutter apps.

When you want to start making your first Flutter app.
When setting up a new computer for Flutter development.
When upgrading to a new version of Flutter SDK.
When preparing your environment to learn mobile app development.
When you want to test Flutter apps on your device or emulator.
Syntax
Flutter
No code for installation, but main steps are:
1. Download Flutter SDK from flutter.dev
2. Extract the zip file
3. Add flutter/bin to your system PATH
4. Run 'flutter doctor' in terminal to check setup
Use the official Flutter website to get the latest SDK version.
Adding Flutter to PATH lets you run Flutter commands anywhere in your terminal.
Examples
This example shows how to install Flutter on Windows step-by-step.
Flutter
On Windows:
- Download flutter_windows_x.x.x-stable.zip
- Extract to C:\src\flutter
- Add C:\src\flutter\bin to PATH environment variable
- Open cmd and run flutter doctor
This example explains Flutter installation on macOS using terminal commands.
Flutter
On macOS:
- Download flutter_macos_x.x.x-stable.zip
- Extract to ~/development/flutter
- Add export PATH="$PATH:~/development/flutter/bin" to your shell profile
- Run flutter doctor in terminal
Sample App

This simple Flutter app shows a message confirming Flutter SDK is installed and working.

Flutter
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: Text('Flutter SDK Installed!'),
        ),
      ),
    );
  }
}
OutputSuccess
Important Notes

Always run flutter doctor after installation to check for missing dependencies.

Make sure to install Android Studio or Xcode if you want to build apps for Android or iOS.

Restart your terminal or computer after updating PATH to apply changes.

Summary

Flutter SDK installation prepares your computer to build Flutter apps.

Download, extract, add to PATH, and verify with flutter doctor.

Follow platform-specific steps for Windows, macOS, or Linux.