mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 07:50:42 +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]);
|
|
}
|
|
}
|