A new Flutter project.
- Firebase project configured for Android (google-services.json) and iOS (GoogleService-Info.plist).
- Google OAuth 2.0 Web Client ID (used for Google Sign-In on mobile).
- Optional: comma-separated list of allowed Google domains.
Provide config via .env and/or --dart-define at build/run time.
--dart-define takes precedence when both are provided.
Example .env:
SERVER_CLIENT_ID=YOUR_WEB_CLIENT_ID.apps.googleusercontent.com
ALLOWED_GOOGLE_DOMAINS=example.edu,example.com
API_BASE_URL=https://proj-xs.fly.dev
Run with --dart-define:
flutter run \
--dart-define=SERVER_CLIENT_ID=YOUR_WEB_CLIENT_ID.apps.googleusercontent.com \
--dart-define=ALLOWED_GOOGLE_DOMAINS=example.edu,example.com \
--dart-define=API_BASE_URL=https://proj-xs.fly.dev
Notes:
SERVER_CLIENT_IDshould point to the Web Client ID created alongside your Firebase project.ALLOWED_GOOGLE_DOMAINSis optional; leave blank to allow any verified Google account.API_BASE_URLis optional; defaults tohttps://proj-xs.fly.dev.
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 development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.