flutter-setup — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited flutter-setup (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Establish a reliable, optimized Flutter development environment across Linux, macOS, and Windows platforms. This guide covers initial SDK installation, PATH configuration, IDE setup, and comprehensive troubleshooting for common setup issues, dependency conflicts, and tooling misconfigurations.
Before starting Flutter installation, verify:
Recommended Installation Paths:
~/development/flutter or /opt/flutterC:\develop\flutter (NEVER use C:\Program Files\)#### Linux/macOS PATH Configuration Add Flutter to your shell configuration file:
For Bash (~/.bashrc or ~/.bash_profile):
export PATH="$PATH:$HOME/development/flutter/bin"
export PATH="$PATH:$HOME/development/flutter/.pub-cache/bin"For Zsh (~/.zshrc):
export PATH="$PATH:$HOME/development/flutter/bin"
export PATH="$PATH:$HOME/development/flutter/.pub-cache/bin"For Fish (~/.config/fish/config.fish):
set -gx PATH $PATH $HOME/development/flutter/bin
set -gx PATH $PATH $HOME/development/flutter/.pub-cache/binApply changes immediately:
source ~/.bashrc # or ~/.zshrc or ~/.bash_profile#### Windows PATH Configuration
Method 1: PowerShell (Recommended)
$flutterPath = "C:\develop\flutter\bin"
$currentPath = [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::User)
if ($currentPath -notmatch [regex]::Escape($flutterPath)) {
[Environment]::SetEnvironmentVariable("Path", "$currentPath;$flutterPath", [EnvironmentVariableTarget]::User)
}Method 2: GUI
Path → EditC:\develop\flutter\binImportant: Close and reopen all terminal windows after PATH changes.
Run the Flutter doctor command to check installation status:
flutter doctor -vThis command checks for:
[✓] Flutter - SDK properly installed and in PATH [✓] Android toolchain - Android SDK, licenses, build tools configured [✓] Chrome - Web development support available [✓] Visual Studio (Windows) - C++ build tools for desktop apps [✓] Xcode (macOS) - iOS/macOS development tools [✓] Android Studio - IDE and Android SDK integration [✓] VS Code - Lightweight IDE with Flutter extension [✓] Connected device - Physical device or emulator detected
[!] Warning - Optional component missing or needs attention [✗] Error - Critical component missing or misconfigured
Ctrl+P → ext install Dart-Code.flutterRecommended VS Code Settings:
{
"dart.flutterSdkPath": "C:\\develop\\flutter",
"dart.debugExternalPackageLibraries": true,
"dart.debugSdkLibraries": false,
"[dart]": {
"editor.formatOnSave": true,
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false
}
}File → Settings → Plugins (Windows/Linux) or Android Studio → Preferences → Plugins (macOS)Tools → SDK ManagerFile → Settings → PluginsFile → Settings → Languages & Frameworks → FlutterCause: Flutter bin directory not in system PATH
Solutions:
echo $PATH (Linux/macOS) or echo $env:Path (PowerShell)Cause: Android SDK Command-line Tools not installed
Solution:
Tools → SDK Manager → SDK Toolsflutter doctor --android-licenses and accept allCause: Android SDK licenses not accepted
Solution:
flutter doctor --android-licensesPress y to accept each license. If this fails:
export ANDROID_HOME=$HOME/Android/Sdksetx ANDROID_HOME "C:\Users\%USERNAME%\AppData\Local\Android\Sdk"Cause: Visual Studio not installed or missing C++ workload
Solution:
flutter doctor to verifyCause: Xcode not installed or command-line tools not configured
Solution:
# Install Xcode from Mac App Store, then:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
sudo xcodebuild -license acceptCause: CocoaPods required for iOS plugin dependencies
Solution:
sudo gem install cocoapods
pod setupIf gem installation fails, use Homebrew:
brew install cocoapodsCause: Git not installed or not in PATH
Solution:
sudo apt-get install gitbrew install git or install Xcode Command Line ToolsCause: Corporate proxy or firewall blocking Flutter downloads
Solution: Configure Flutter to use proxy:
export HTTP_PROXY=http://proxy.company.com:8080
export HTTPS_PROXY=http://proxy.company.com:8080
export NO_PROXY=localhost,127.0.0.1
flutter config --no-analytics # Disable analytics if blockedFor persistent configuration, add to shell profile.
Cause: Multiple Flutter installations or conflicting PATH entries
Solution:
which flutter (Linux/macOS) or where flutter (Windows)flutter clean in project directoriesCause: IDE cannot locate Flutter SDK
Solution:
{"dart.flutterSdkPath": "/path/to/flutter"}Settings → Languages & Frameworks → Flutter → Flutter SDK pathbin/, packages/, etc.)Cause: IDE not properly connected or outdated Flutter version
Solution:
r in terminal or IDE restart buttonflutter upgradeflutter cleanCause: Gradle configuration or network issues
Solution:
android/gradle/wrapper/gradle-wrapper.properties cd android
./gradlew clean
cd ..
flutter cleanandroid/app/build.gradle for correct compileSdkVersion and minSdkVersionAfter resolving all flutter doctor issues:
flutter create test_app
cd test_app flutter devices # List available devices
flutter run # Run on default devicelib/main.dart and press r in terminal flutter build apk # Android
flutter build ios # iOS (macOS only)
flutter build windows # Windows desktop
flutter build macos # macOS desktop
flutter build linux # Linux desktopFor detailed platform-specific setup instructions:
Check Flutter version:
flutter --versionUpdate Flutter SDK:
flutter upgradeCheck Flutter channel (stable/beta/dev):
flutter channelSwitch to stable channel:
flutter channel stable
flutter upgradeClear Flutter cache:
flutter clean
flutter pub cache repairAnalyze project for issues:
flutter analyzeCheck for dependency updates:
flutter pub outdatedYour Flutter environment is properly configured when:
flutter doctor -v shows all green checkmarks (or acceptable warnings)flutter --version displays version informationflutter devices lists at least one available deviceflutter create test_project && cd test_project && flutter run successfully launches appr during debug session)If any issues persist after following this guide, consult platform-specific references or Flutter's official troubleshooting documentation.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.