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

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

No files matched your search

+16
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'] ?? '';
}