Hello and welcome everynyan to our time management application for Android. (Even though it is in Flutter we are to poor for an IOS developer account)
This repository serves as the initial setup for a Flutter application. If this is your first time using Flutter, consider exploring the following resources to get up to speed:
- Flutter Getting Started Guide - Step-by-step instructions to test drive Flutter.
- Flutter Online Documentation - Comprehensive guides, samples, and a full API reference for mobile development.
Install the necessary packages from the official Arch repositories:
dart gradle clang cmake ninja pkgconf libbsd
Also, install the following from the Arch User Repository (AUR):
flutter google-chrome android-sdk android-sdk-build-tools android-platform android-sdk-platform-tools android-sdk-cmdline-tools-latest android-emulator
For Chrome support, add the following variable to your environment:
export CHROME_EXECUTABLE="$(which google-chrome-stable)"
Create a new user group with write permissions:
groupadd android-sdk
gpasswd -a <user> android-sdk
setfacl -R -m g:android-sdk:rwx /opt/android-sdk
setfacl -d -m g:android-sdk:rwX /opt/android-sdk
newgrp android-sdk
Alternatively, set the Android directory to have '777' permissions with:
chmod -R 777 /opt/android
Accept all Android licenses:
yes | flutter doctor --android-licenses
To install a system image using sdkmanager:
sdkmanager --list
sdkmanager --install "system-images;android-35;google_apis;x86_64"
sdkmanager --list_installed
To create an Android Virtual Device (AVD) using avdmanager:
avdmanager create avd -n myavd -k "system-images;android-35;google_apis;x86_64"
avdmanager list avd
To start the emulator:
emulator -avd myavd
Or, to start without loading snapshots:
emulator @myavd -no-snapshot-load
If the emulator cannot find the avd.ini
file, set the ANDROID_AVD_HOME
variable:
export ANDROID_AVD_HOME="/path/to/.android/avd"
For non-Arch Linux users, please refer to the Flutter online documentation for setup instructions done for your operating system.
To run your Flutter application, select your build device and execute:
flutter run
After running the application a custom link to the flutter DevTools is provided. If followed you can for example access the logs of the application.
Please log with the log_service methods. Those are automatically displayed in the DevTools.