m3_lightmeter/lib/platform_config.dart
2023-01-26 18:03:48 +03:00

6 lines
226 B
Dart

class PlatformConfig {
static double get cameraPreviewAspectRatio {
final rational = const String.fromEnvironment('cameraPreviewAspectRatio').split('/');
return int.parse(rational[0]) / int.parse(rational[1]);
}
}