feat: Implement initial authentication, multi-environment support, and core app infrastructure.

This commit is contained in:
pradeepkumar
2026-02-23 19:23:30 +05:30
parent 0f07a16132
commit 4f8ad7fe49
55 changed files with 3836 additions and 118 deletions

View File

@@ -0,0 +1,16 @@
import 'package:flutter_dotenv/flutter_dotenv.dart';
enum Flavor { local, demo, dev }
class AppConfig {
static late Flavor flavor;
static String get envFileName => '.env.${flavor.name}';
static Future<void> init(Flavor f) async {
flavor = f;
await dotenv.load(fileName: envFileName);
}
static String get apiBaseUrl => dotenv.env['API_BASE_URL'] ?? '';
}