m3_lightmeter/lib/platform_config.dart

11 lines
344 B
Dart
Raw Permalink Normal View History

class PlatformConfig {
const PlatformConfig._();
static double get cameraPreviewAspectRatio {
2023-01-26 15:03:48 +00:00
final rational = const String.fromEnvironment('cameraPreviewAspectRatio').split('/');
return int.parse(rational[0]) / int.parse(rational[1]);
}
static String get cameraStubImage => const String.fromEnvironment('cameraStubImage');
}