mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
12 lines
401 B
Dart
12 lines
401 B
Dart
class PlatformConfig {
|
|
const PlatformConfig._();
|
|
|
|
static double get cameraPreviewAspectRatio {
|
|
final rational = const String.fromEnvironment('cameraPreviewAspectRatio').split('/');
|
|
return int.parse(rational[0]) / int.parse(rational[1]);
|
|
}
|
|
|
|
static String get cameraStubImage => const String.fromEnvironment('cameraStubImage');
|
|
|
|
static bool get isTest => cameraStubImage.isNotEmpty;
|
|
}
|