This is the frontend of our Tracking App, designed to visualize GPS data, altitude profiles, and route statistics.
This is a guide to run the app on real Android device on Ubuntu from scratch.
The steps were made on a following system:
Operating system: Ubuntu 24.04.2 LTS x86_64
Desktop environment: GNOME 46.0
Window manager: Mutter
Flutter:
To run the application first step is to install Flutter framework. Package requirements for Flutter are
curl git unzip xz-utils zip libglu1-mesa
Now download Flutter SDK tar.xz from this link Flutter SDK. And extract the file into any directory you feel comfortable with, but keep in mind that we will use the directory path later. To extract the file you can use following command (It assumes you have the tar.xz file in ~/Downloads directory
tar -xf ~/Downloads/flutter_linux_3.29.3-stable.tar.xz -C ~/a/path/to/directory/
Add the Flutter SDK to PATH, so you can use it in any directory in terminal. Please, use the directory to Flutter SDK (directory path from previous section). If you use bash shell you can use following command
echo 'export PATH="$HOME/a/path/to/directory/flutter/bin:$PATH"' >> ~/.bash_profile
To check if Flutter was properly install you can use
flutter doctor
Since we plan to run the app on Android (iPhone simulator can not be run on non MacOs machines), we will be needing Android Studio. However, the IDE choice for this guide is VisualStudio Code (more on that later). Package requirements for Android Studio are
libc6:amd64 libstdc++6:amd64 lib32z1 libbz2-1.0:amd64
The link to Android Studio is Android Studio
Android device setup:
Select Device Managet option and separate section should appear on the right
IDE:
For a reason that Visual Studio Code is broadly used this guide considers VS Code as IDE.
Here is the link to install it https://code.visualstudio.com/download
Confusing part in installing the Flutter extension for VS Code is it will need to locate the Flutter SDK.\
In the end check if everything works alright with help of “flutter doctor” in the project directory. This will print the information about your system and issues in certain categories
Android license - you will need to agree to android license before running the app, the command for it is
flutter doctor --android-licenses
Android SDK Command-line Tools are necessary for proper work of project. Install steps are: