feat: implement production flavor with environment configuration and build support

This commit is contained in:
pradeepkumar
2026-04-08 03:50:52 +05:30
parent 7e4f879171
commit 82c0582bca
9 changed files with 23 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import 'package:flutter_dotenv/flutter_dotenv.dart';
enum Flavor { local, demo, dev }
enum Flavor { local, demo, dev, prod }
class AppConfig {
static late Flavor flavor;
@@ -13,5 +13,4 @@ class AppConfig {
}
static String get apiBaseUrl => dotenv.env['API_BASE_URL'] ?? '';
static String get storageBaseUrl => dotenv.env['STORAGE_BASE_URL'] ?? '';
}