15 lines
616 B
Dart
15 lines
616 B
Dart
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
|
|
class AppConfig {
|
|
static String get baseUrl => dotenv.get('SERVER_URL', fallback: '');
|
|
static String get domainRedirectUrl => dotenv.get('DOMAIN_REDIRECT_URL', fallback: '');
|
|
static String get webOidcClientId => dotenv.get('WEB_OIDC_CLIENT_ID', fallback: '');
|
|
static bool get appGridDashboardAvailable {
|
|
final supported = dotenv.get('APP_GRID_AVAILABLE', fallback: 'unsupported');
|
|
if (supported == 'supported') {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
static String appDashboardConfigurationPath = "configurations/app_dashboard.json";
|
|
} |