Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
environment_config.dart
Go to the documentation of this file.
1import 'package:flutter_dotenv/flutter_dotenv.dart';
2
4 // API Configuration
5 static String get apiBaseUrl =>
6 dotenv.env['API_BASE_URL'] ?? 'https://dev-api.aidra.tech/';
7 static int get apiTimeout => int.parse(dotenv.env['API_TIMEOUT'] ?? '30000');
8
9 // Environment
10 static String get environment => dotenv.env['ENV'] ?? 'development';
11
12 // App Information
13 static String get appName => dotenv.env['APP_NAME'] ?? 'Aidra Connect';
14 static String get appVersion => dotenv.env['APP_VERSION'] ?? '7.0.0+7';
15
16 // Helper method to check current environment
17 static bool isDevEnvironment() => environment == 'development';
18 static bool isTestEnvironment() => environment == 'test';
19}
static String get appVersion
static String get appName
static bool isDevEnvironment()
static String get environment
static bool isTestEnvironment()
static String get apiBaseUrl