Agent skill
install-flutter-from-git
Install Flutter SDK via git clone and configure for all platforms
Install this agent skill to your Project
npx add-skill https://github.com/rodydavis/skills/tree/main/skills/install-flutter-from-git
SKILL.md
Install Flutter from Git
This skill guides you through installing the Flutter SDK using git clone and setting up the environment for Web, Mobile, and Desktop development.
1. Prerequisites (All Platforms)
Ensure you have the following installed:
- Git: Install Git
- Curl/Unzip (macOS/Linux usually have these; Windows usually needs Git Bash or similar)
2. Install Flutter SDK
macOS / Linux
Open your terminal and run the following commands to clone the stable branch of the Flutter SDK.
# Create a directory for development (e.g., ~/development)
mkdir -p ~/development
cd ~/development
# Clone the Flutter SDK
git clone https://github.com/flutter/flutter.git -b stable
Windows
Open PowerShell or Command Prompt.
# Create a directory for development (e.g., C:\src)
mkdir C:\src
cd C:\src
# Clone the Flutter SDK
git clone https://github.com/flutter/flutter.git -b stable
3. Add Flutter to PATH
To run flutter commands from any terminal, you must add the SDK's bin directory to your PATH.
macOS (Zsh) / Linux (Bash/Zsh)
-
Open your shell configuration file (e.g.,
~/.zshrc,~/.bashrc, or~/.zshenv). -
Add the following line (replace
~/development/flutterwith your actual path):bashexport PATH="$PATH:$HOME/development/flutter/bin" -
Refresh your current terminal:
bashsource ~/.zshrc # or ~/.bashrc
Windows
- Press
Win + S, type "env", and select Edit the system environment variables. - Click Environment Variables.
- Under User variables, select Path and click Edit.
- Click New and add the full path to
flutter\bin(e.g.,C:\src\flutter\bin). - Click OK on all windows.
- Restart your terminal/PowerShell.
4. Verify Installation
Run the following command to check for missing dependencies:
flutter doctor
5. Platform Setup
Web (Chrome)
- Install Chrome: Ensure Google Chrome is installed.
- Enable Web Support (usually enabled by default):
bash
flutter config --enable-web - Verify: Run
flutter devicesto see "Chrome" listed.
Mobile (iOS & Android)
iOS (macOS only)
- Install Xcode: Download from the Mac App Store.
- Configure Command Line Tools:
bash
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch - Install CocoaPods (for dependency management):
bash
sudo gem install cocoapods - Simulator: Open via
open -a Simulator.
Android (All Operating Systems)
- Install Android Studio: Download here.
- Install SDK Components:
- Open Android Studio -> SDK Manager.
- Install Android SDK Platform-Tools.
- Install Android SDK Command-line Tools (latest).
- Accept Licenses:
bash(Press
flutter doctor --android-licensesyto accept all licences). - Emulator: Create a device in AVD Manager.
Desktop (macOS, Windows, Linux)
macOS Desktop
- Install Xcode: (Same as iOS steps above).
- Enable macOS:
bash
flutter config --enable-macos-desktop
Windows Desktop
- Install Visual Studio (not VS Code): Download VS Community.
- Workloads: When installing, select Desktop development with C++.
- Enable Windows:
bash
flutter config --enable-windows-desktop
Linux Desktop
- Install Dependencies (Ubuntu/Debian example):
bash
sudo apt-get update sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev - Enable Linux:
bash
flutter config --enable-linux-desktop
6. Final Check
Run flutter doctor again to ensure all desired platforms have checkmarks.
flutter doctor -v
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
how-to-do-offline-recommendations-with-sqlite-and-gemini
Learn how to enhance your CMS like PocketBase with AI-powered content recommendations using text embeddings, SQLite, and k-nearest neighbor search for efficient and scalable related content suggestions.
how-to-build-a-webrtc-signal-server-with-pocketbase
Learn how to build a simple WebRTC video call application using PocketBase as a signaling server, enabling peer-to-peer communication with SQLite on the server and realtime updates via Server Sent Events.
flutter-terminal-cheat-sheet
This post provides a handy collection of Flutter commands and scripts for web development, package creation, troubleshooting, testing, and more, streamlining your Flutter workflow.
how-to-print-multiple-objects-to-the-console-with-print-in-dart
Learn how to print multiple objects to the console in Dart using Records, offering a similar experience to JavaScript's `console.log()` functionality.
flutter-input-output-preview
Build responsive Flutter apps with a reusable `TwoPane` widget and an `InputOutputPreview` component for side-by-side code and preview display on both mobile and desktop.
displaying-html-in-flutter
Easily display and interact with HTML content in your Flutter app using the `easy_web_view` package, which supports both web and mobile platforms.
Didn't find tool you were looking for?