This project focuses on using VS Code as an IDE for development on all platforms. No Android Studio, Xcode, or other IDE required.
# Windows
scoop install extra/flutter
# macOS
brew install flutter
# Arch Linux
yay flutter
For Chinese users, you can set the following environment variables to speed up the download of Flutter SDK and Dart packages.
export FLUTTER_STORAGE_BASE_URL='https://storage.flutter-io.cn'
export PUB_HOSTED_URL='https://pub.flutter-io.cn'
cd src
flutter pub get
cd src/windows
# Install necessary tools.
brew install xcodegen cocoapods
# Optional: install linter and formatter
# if you want to contribute to this project.
brew install swiftlint swiftformat
cd src/macos
# Generate Runner.xcodeproj, check project.yml for details.
xcodegen generate
cd src/linux
-
Install your preferred Java SDK. This project uses the latest Oracle JDK. Do not forget to set the
JAVA_HOME
environment variable.# Windows scoop install java/oraclejdk # scoop will set JAVA_HOME automatically $env:JAVA_HOME = $env:USERPROFILE + '\scoop\apps\oraclejdk\current' # macOS brew install oracle-jdk export JAVA_HOME="$(/usr/libexec/java_home)" # Arch Linux yay jdk export JAVA_HOME='/usr/lib/jvm/java-jdk21'
-
Install Android command line tools and set the
ANDROID_HOME
environment variable.# Windows scoop install main/android-clt # scoop will set ANDROID_HOME automatically $env:ANDROID_HOME = $env:USERPROFILE + '\scoop\apps\android-clt\current' # macOS brew install android-commandlinetools export ANDROID_HOME='/usr/local/share/android-commandlinetools' # Arch Linux yay android-sdk-cmdline-tools-latest export ANDROID_HOME='/opt/android-sdk'
-
Install Gradle.
# Windows scoop install main/gradle # macOS brew install --ignore-dependencies gradle # Arch Linux sudo pacman -S gradle
-
Build
cd src/android gradle wrapper gradle build
# Install necessary tools.
brew install xcodegen cocoapods
# Optional: install linter and formatter
# if you want to contribute to this project.
brew install swiftlint swiftformat
cd src/ios
# Generate Runner.xcodeproj, check project.yml for details.
xcodegen generate