Workspacebook Mobile Flutter

Create a `.env` file at the root of your project and add the following variables:

flutter mobile dart
View Source

Overview

Arsitektur Workspacebook Mobile: Flutter klien dengan Supabase backend

Workspacebook Mobile Flutter is a mobile client built with Flutter and powered by Supabase for authentication and backend services. Before running the app, configure the required environment variables first.

🔐 Environment Variable Configuration

Alur konfigurasi environment variable dari file .env ke aplikasi Flutter

Create a .env file at the project root, then add the following variables:

SUPABASE_URL=
SUPABASE_ANON_KEY=
SUPABASE_REDIRECT_URL=

Variable Reference

VariablePurposeWhere to find it
SUPABASE_URLThe base URL of your Supabase project.Project Settings → API → Project URL
SUPABASE_ANON_KEYThe public anonymous API key used to access Supabase from the frontend.Project Settings → API → anon public
SUPABASE_REDIRECT_URLThe redirect URL used after login or OAuth sign-in (e.g. Google Sign-In).Authentication → URL Configuration → Site URL

Local Development Notes

💡 For local development, point SUPABASE_REDIRECT_URL to your local app scheme or an http://localhost callback so the OAuth flow returns to the running app.