mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-27 18:00:40 +00:00
7 lines
247 B
Dart
7 lines
247 B
Dart
|
class PlatformConfig {
|
||
|
static double get cameraPreviewAspectRatio {
|
||
|
final rational = const String.fromEnvironment('cameraPreviewAspectRatio', defaultValue: "3/4").split('/');
|
||
|
return int.parse(rational[0]) / int.parse(rational[1]);
|
||
|
}
|
||
|
}
|