installing Flutter in Linux mint :
sudo snap install flutter --classic
it takes some time to download but it says
"flutter 0+git.8cbec5c from Flutter Team* installed"
I was trying to verify that is flutter installed properly or not?
flutter doctor
and the response of the "flutter doctor" command is :
/ has 'other' write 40777
so I found that its some permission issue for flutter
to solve / has 'other' write 40777 for flutter i followed this step :
1. Find where is the flutter
which flutter
I got the path of the flutter install by which command and Flutter is at "/snap/bin/flutter"
2. change the permission of the flutter.
go to the folder where flutter installed by cd command
cd /snap/bin
now change the permission of all files and folders by
sudo chmod 755 /
3. try now flutter doctor in the same directory
and it says
Initializing Flutter
....
....
so it means now it is now in the right direction.
after downloading and installing flutter it says
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[?] Chrome - develop for the web
[?] Android Studio (version 4.1)
[?] Connected device (2 available)
! Doctor found issues in 1 category.
so i run
flutter doctor --android-licenses
after it starts asking licenses related questions :
Review licenses that have not been accepted (y/N)? y
i typed Y for licenses regarding questions.
now again i run command
flutter doctor
and Finally :
[?] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[?] Chrome - develop for the web
[?] Android Studio (version 4.1)
[?] Connected device (2 available)
• No issues found!
now all look good!
but I found that I should install addition to the Flutter SDK, which is :
Clang
CMake
GTK development headers
Ninja build
pkg-config
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
so i run following command for Linux desktop development :
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
flutter config --enable-linux-desktop
Hurry! i completed by Flutter installation.