m3_lightmeter/lib/platform_config.dart

7 lines
226 B
Dart
Raw Permalink Normal View History

class 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]);
}
}