If you haven’t tried Antigravity yet, it’s Google’s new agentic IDE built on top of VS Code. Unlike basic autocomplete or chat assistants, Antigravity functions like a lightweight co-developer—it reads/writes files, handles terminal commands, installs packages, runs tests, and creates execution plans before touching your codebase.
Here is the straightforward guide to setting up Flutter, Android, iOS, and Antigravity on Apple Silicon (M-series Macs).
Prerequisites
Before diving in, make sure you have:
- macOS 15 (Sequoia) or later on an Apple Silicon Mac.
- Homebrew installed. If you don’t have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - A Google account to sign into Antigravity.
1. Install Flutter
The cleanest way to handle Flutter on macOS is through Homebrew:
brew install flutter
Confirm it’s installed and check your channels:
flutter --version
2. Set Up Xcode (iOS & macOS)
Flutter needs the full Xcode suite to build for iOS—the lightweight Command Line Tools alone won’t cut it.
- Grab Xcode from the Mac App Store (~30 GB, so let it download in the background).
- Once installed, run these setup commands in your terminal to configure the paths and licenses:
# Link xcode-select to the full Xcode app
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
# Run initial setup components
sudo xcodebuild -runFirstLaunch
# Accept the license agreement
sudo xcodebuild -license accept
Quick Tip: Open Xcode manually at least once after installing. It will prompt you to install additional platform SDKs. Make sure to check the box for the iOS SDK.
3. Install CocoaPods
CocoaPods manages native iOS dependencies for Flutter plugins. Grab it via Brew:
brew install cocoapods
4. Set Up the Android Toolchain
You can install the full Android Studio suite if you want the GUI, but if you prefer keeping things lightweight, you can install just the Command Line Tools:
# Install Android command-line tools & Java JDK
brew install --cask android-commandlinetools
brew install --cask temurin
# Point Flutter to the SDK path
flutter config --android-sdk /opt/homebrew/share/android-commandlinetools
# Accept licenses & install baseline packages
yes | sdkmanager --licenses
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.1"
# Final license agreement pass through Flutter
flutter doctor --android-licenses
5. Verify Everything with flutter doctor
Run Flutter’s diagnostic tool to ensure your environment is healthy:
flutter doctor -v
If you get green checkmarks across Flutter, Android, Xcode, and Chrome, you’re good to go.
6. Install & Configure Antigravity
- Download Antigravity from antigravity.google and move it to your
/Applicationsfolder. - Open the IDE and sign in with your Google account.
- On first launch, select Review-driven mode. This ensures the agent asks for approval before modifying your files or executing terminal commands.
Install Flutter Extensions & Set SDK Path
Open the Extensions tab (⌘ + Shift + X) and install:
- Dart
- Flutter
If Antigravity doesn’t pick up Flutter automatically, open Settings (⌘ + ,), search for flutter.sdkPath, and set it to:
/opt/homebrew/bin/flutter
Enable the Dart/Flutter MCP Server
To give the agent full context over your app’s architecture and pubspec dependencies:
- Open the Agent Panel (
Ctrl + L). - Click the ⋯ menu -> Manage MCP Servers.
- Install the Dart/Flutter MCP Server from the store.
7. Build Something!
Now for the fun part. Open the Agent panel (Ctrl + L) and try prompting a brand-new project:
Create a new Flutter app called “my_first_app” using Material 3. Include a bottom navigation bar with 3 tabs (Home, Search, Profile) and a dark mode toggle in the app bar.
Antigravity will write up an implementation plan, create the project using flutter create, scaffold your widget tree, and verify the build.
To launch your app manually from the terminal:
# Run on iOS Simulator
open -a Simulator
flutter run
# Run on Chrome
flutter run -d chrome
Quick Reference Commands
# Tooling Installation
brew install flutter cocoapods
brew install --cask android-commandlinetools temurin
# Xcode Configuration
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
sudo xcodebuild -license accept
# Android Toolchain
flutter config --android-sdk /opt/homebrew/share/android-commandlinetools
flutter doctor --android-licenses
# Verification & Running
flutter doctor -v
flutter run
Leave a comment