mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
5eb0869aa0
Probably will be changed in future, is it currently relies on the `ResolutionPreset` being tied with aspect ratio
6 lines
247 B
Dart
6 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]);
|
|
}
|
|
}
|