Using Flutter in the Build Pipeline
In order to be able to use Flutter to build your mobile applications, you will need to first add these steps:
cd ~
curl -L -o flutter_linux_stable.tar.xz \
https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.6-stable.tar.xz
tar xf flutter_linux_stable.tar.xz
~/flutter
echo 'export PATH="$PATH:$HOME/flutter/bin"' >> ~/.bashrc
source ~/.bashrc
flutter --version
What's Flutter?
Flutter is an open-source UI software development kit created by Google. It is used to develop cross-platform applications from a single codebase for Android, iOS, Linux, macOS, Windows, and the web. Flutter uses the Dart programming language and provides a rich set of pre-designed widgets for building beautiful, natively compiled applications.
Common Flutter Build Commands:
After setting up Flutter, you can use commands like:
# Build for web
flutter build web
# Build for Android
flutter build apk
# Build for iOS (requires macOS)
flutter build ios
Happy deploying!