Skip to content

plauge/flutter_startup

Repository files navigation

Flutter Startup Project

A Flutter project template with environment configuration and Supabase integration.

Environment Setup

The app supports three different environments:

  • Development
  • Test
  • Production

Environment Files

Create the following .env files in the root directory:

.env.development
.env.test
.env.production

Each file should contain:

SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key

Code Generation

Before running the app, generate the necessary code files:

flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs --verbose

Running the App

Development Environment (Default)

flutter run

Or explicitly:

flutter run --dart-define=ENVIRONMENT=development

Test Environment

flutter run --dart-define=ENVIRONMENT=test

Production Environment

flutter run --dart-define=ENVIRONMENT=production

Building for Release

Production Build (Android)

flutter build apk --dart-define=ENVIRONMENT=production

Production Build (iOS)

flutter build ios --dart-define=ENVIRONMENT=production

Important Notes

  • The app defaults to development environment if no environment is specified
  • Environment files (.env.*) are not committed to version control
  • Use .env.example as a template for creating environment files
  • Make sure to add your environment files to .gitignore

Getting Started

  1. Clone the repository
  2. Copy .env.example to create your environment files:
    cp .env.example .env.development
    cp .env.example .env.test
    cp .env.example .env.production
  3. Update each .env file with your Supabase credentials
  4. Run flutter pub get
  5. Run the app using one of the commands above

Slider

https://pub.dev/packages/flutter_swipe_button

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages