mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 00:10:47 +00:00
6 lines
226 B
Dart
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]);
|
|
}
|
|
}
|