/usr/local/
and /opt
$PATH
ext install ms-vscode.cpptools
At this point, if you run flutter doctor
it’ll look up your system for development capabilities. For example, it told me i didn’t have the Android toolchain and Android studio not installed so couldn’t develop for Android. Also, no connected devices.
apt install android-sdk
will install to /usr/lib/android-sdk
/usr/local/
and /opt
./studio.sh
inside the android-studio/bin
directory$PATH
adb
on my Linux system: sudo apt install adb
plugdev
group sudo usermod -aG pugdev $LOGNAME
(your user is likely to already be in the plugdev
group..)flutter devices
to make sure your device is connected. (You can also try adb devices
) 1# ~/.bashrc
2
3# Add Futter SDK to PATH
4export PATH="$PATH:/media/aamnah/Files/Dev/flutterSDK/bin"
5
6# Add Android Studio to PATH
7export PATH="$PATH:/media/aamnah/Files/Dev/android-studio/bin"
8
9# Set ANDROID_HOME
10# i did this because i had moved the `~/.android` directory because i was low on space
11export ANDROID_HOME="/media/aamnah/Files/Dev/androidSDK"
At the end of it all, your flutter doctor
output will look like this:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Linux, locale en_US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)
• No issues found!
Create a flutter app
1flutter create myapp
2flutter run
lowercase_with_underscore
run
would take a long time, i thought it got stuck on Gradle, and then it spent a bunch of time resolving dependencies.. It gets busy downloading stuff in the background..Initializing gradle
176.6s (!) = 3mins
Resolving dependencies
448.7s (!) = 7.5mins
1 flutter channel dev
2 flutter upgrade
3 flutter config --enable-web
4 cd <into project directory>
5 flutter create .
6 flutter run -d chrome
1# generate a release build
2flutter build web
Just run flutter format <filename>
r
manually in the terminal to hot reload the app. If you are using Android Studio, it will automatically reload on save.TODO
in the beginnig, you’ll be able to see all todo tasks in your project in the Todo tab at the bottom._suggestions
) enforces privacy in the Dart language.