A new Flutter project.
- Signed Commits are Required
- No Commits directly to Master
- Two Reviews Required per Pull Request
- Happy Commiting :)
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Setup a VM with Ubuntu 20.04 (Or others if you dare)
I chose to use 20.04.1 LTS
Install vscode
sudo snap install code --classic
Install flutter:
sudo snap install flutter --classic
flutter sdk-path
Install other dependencies
sudo apt install -Y git openjdk-11-jdk
Configure VSCode Extensions
- Launch vscode:
code &
- Click Package button
- Search for "Flutter"
- Click "Install"
- Search for "Dart"
- Make sure the dart extension is installed as well (It should be a dependency for Flutter)
Install Android Studio
-
sudo snap install android-studio --classic
-
Open Android Studio from the Activities area in Ubuntu
-
Do not import settings
-
Move the the installer choosing the Standard install
-
Once the installer is done, click
Finish
-
Android Studio should remain open, if not open it.
-
Click Configure in the bottom right
Configure->SDK-Manager
-
Select the version of android that corresponds to a device that you own (If you want to debug on that device). I had trouble using the Android 11 (R) version, but had good luck with Android 10 (Q)... YMMV
-
Make sure you have the required SDK Tools
- Leave anything that comes checked
- Check
Android SDK Command-line Tools (latest)
-
Click OK
-
If prompted, accept the terms and conditions and proceed with installing any needed SDKs
From the main Android Studio startup page, Click Configure->Plugins Install the "flutter" plugin.
- Launch Android Studio->Configure->AVD Manager
- Downloaded the neede image for the Pixel (Or whatever device)
- Make sure that your VM has Nested virtualization (VT-X) Enabled or you will need to use a physical device to debug.
Open a terminal and run flutter doctor
and handle any errors that may remain in your installation.
I had to do the following
-
flutter config --android-studio-dir=/snap/android-studio/current/android-studio
-
flutter doctor --android-licenses
Then accept any licenses needed -
It is okay that Android Studio plugins are not recognized
-
Close all IDEs
-
Launch vscode
-
Open the root directory of our GitHub project