Welcome to the world of Flutter Distributor, an all-in-one application packaging and distribution tool tailored for Flutter developers! Whether you are looking to package your app for Android, iOS, or even desktop platforms, this tool is your go-to solution. In this guide, we’ll walk you through the setup process, the various features available, and some troubleshooting tips.
Getting Started with Flutter Distributor
Before diving into packaging and distributing your app, you need to install Flutter Distributor. Here’s how you do it:
- Installation: Open your terminal and run the following command:
dart pub global activate flutter_distributor
Setting Up Your Project
After successful installation, you need to set up your project. Create a distribute_options.yaml file in your project’s root directory. Here’s an example of how you can structure it:
yaml
variables:
PGYER_API_KEY: your api key
output: dist
releases:
- name: dev
jobs:
- name: release-dev-android
package:
platform: android
target: apk
build_args:
target-platform: android-arm,android-arm64
dart-define:
APP_ENV: dev
publish_to: pgyer
- name: release-dev-ios
package:
platform: ios
target: ipa
build_args:
export-options-plist: iosdev_ExportOptions.plist
dart-define:
APP_ENV: dev
publish_to: pgyer
In this configuration, you define your application’s variables and specify the jobs for Android and iOS platforms. The build_args section allows you to customize the build process to suit your project requirements.
Releasing Your App
Once your distribute_options.yaml is set up, releasing your app is a breeze. Simply execute the following command:
flutter_distributor release --name dev
This command builds and publishes your application to the tailored platforms specified in your configuration file.
Why Use Flutter Distributor?
Flutter Distributor simplifies the packaging and distribution process for various platforms, making it user-friendly for developers. It supports numerous package formats such as aab, apk, rpm, dmg, ipa, and many more. Furthermore, it integrates seamlessly with publishing services including Pgyer, Firebase, and GitHub.
Troubleshooting Common Issues
Even the best tools can present challenges. Here are some common troubleshooting ideas:
- If you encounter issues while publishing, ensure that your API keys are correctly configured in the distribute_options.yaml file.
- Always check the build_args section for any required parameters that might be missing.
- Run the command flutter doctor to check for any environment issues that may affect your build process.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Remember, documentation is crucial! For complete guidelines, visit the full documentation at distributor.leanflutter.dev.
Final Thoughts
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

