This section covers all topics important for Developers.
First of all we need to retrieve all referenced packages with the following command.
dart run pub get
Then we need to generate some code with the following command.
dart run build_runner build --delete-conflicting-outputs
For the application to work correctly we need to specify some environment variables. Therefore copy the files and fill in its values afterwards.
Flutter specific
cp ./.env.local.example ./.env.local
Supabase specific
cp ./supabase/.env.local.example ./supabase/.env.local
ℹ️ You can leave the value for the SUPABASE_URL
key empty since we fill this with the following script.
For Deep Links to work correctly on external devices we need to set out local IP address to some files. Therefore we created a script to handle this.
- Set the executable permission.
chmod +x ./scripts/set_temporary_values.sh
- Run the script.
./scripts/set_temporary_values.sh
Therefore we also created a script that resets the values.
- Set the executable permission.
chmod +x ./scripts/reset_temporary_values.sh
- Run the script.
./scripts/reset_temporary_values.sh
Make sure Docker is up and running in the background before running this command.
supabase start
When testing Deep Links in a Browser no matter whether external device or simulator make sure the Web App is up and running on Port 8080
in the background.
Any platform
flutter run --debug --dart-define-from-file=.env.local
macOS
flutter run --debug --dart-define-from-file=.env.local -d macos
Windows
flutter run --debug --dart-define-from-file=.env.local -d windows
Web
flutter run --debug --dart-define-from-file=.env.local --web-port=8080 -d chrome
- Support for Windows Deep Links