31.28 Flutter Install Linux
20230918
The Ubuntu guide to an initial install on Ubuntu begins with a snap install:
sudo snap install flutter --classic
Running the flutter command will then initialise the installation.
flutter
If you will be targeting Android devices then you will need (to be confirmed 20220209):
sudo snap install androidsdk
sudo snap install android-studio --classic
android-studio
flutter config --android-studio-dir /snap/android-studio/current/android-studio
flutter doctor --android-licenses
For the latest developer version of flutter:
flutter channel dev
flutter upgrade
Ensure support for desktop application development:
flutter config --enable-linux-desktop
flutter config --enable-macos-desktop
flutter config --enable-windows-desktop
Check everything is okay:
flutter doctor
To then create, build, and run a sample linux desktop application
named button
, specifying the target device id with -d
:
mkdir button
cd button
flutter create .
flutter run -d linux
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0
