Framework guides

Flutter

Lunadeck supports building Flutter applications for Android. The Flutter SDK is automatically provisioned in the cloud build environment.

Getting started

  1. Upload or connect your Flutter project
  2. Lunadeck detects pubspec.yaml and identifies the project as Flutter
  3. The build engine runs flutter build apk to produce the artifact

Requirements

  • Flutter 3.16 or later
  • A valid pubspec.yaml
  • Android configuration in android/app/build.gradle

Build configuration

Lunadeck supports the following Flutter build modes:

ModeCommandOutput
Debugflutter build apk --debugDebug APK
Releaseflutter build apk --releaseRelease APK
App Bundleflutter build appbundleAAB for Play Store

You can select the build mode in your project settings or lunadeck.config.json:

{
  "framework": "flutter",
  "buildCommand": "flutter build appbundle --release"
}

Platform channels

If your Flutter app uses platform channels with native Android code (Kotlin/Java), ensure the native code compiles correctly with the Android SDK version used by Lunadeck.

Plugins

Flutter plugins with native dependencies are automatically resolved. If a plugin requires additional Android SDK components, specify them in your project configuration.