🛠 Step-by-Step: Set Up Flutter + FVM + Create Project on a New Computer
1️⃣ Install Dart (required for FVM)
- macOS/Linux:
brew install dart # macOS
sudo apt install dart # Ubuntu/Debian
- Windows: download from Dart SDK and follow instructions.
Check Dart:
dart --version
2️⃣ Install FVM
dart pub global activate fvm
- Add FVM to PATH (Linux/macOS):
export PATH="$PATH":"$HOME/.pub-cache/bin"
Check FVM:
fvm --version
3️⃣ Install Flutter version via FVM
fvm install stable
- Optional: set global default version:
fvm global stable
4️⃣ Create new Flutter project
fvm flutter create my_first_app
cd my_first_app
5️⃣ Lock project to FVM version
fvm use stable
6️⃣ Get dependencies
fvm flutter pub get
7️⃣ Run the app
fvm flutter run
✅ Summary: What You Needed
- Install Dart (required for FVM)
- Install FVM (dart pub global activate fvm)
- Install Flutter version (fvm install stable)
- Set IDE Flutter SDK path → point to FVM version
- Create project (Android Studio or terminal)
- Run app
- Use fvm flutter pub get for dependencies
💡 Pro Tip:
After this setup, you can work offline for a project, because FVM keeps the Flutter SDK and packages cached.
Top comments (0)