mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-02-22 20:40:40 +00:00

* updated pub version * added lint * --code=always_use_package_imports * dart fixes * format * other lints
8 lines
255 B
Dart
8 lines
255 B
Dart
class PlatformConfig {
|
|
const PlatformConfig._();
|
|
|
|
static double get cameraPreviewAspectRatio {
|
|
final rational = const String.fromEnvironment('cameraPreviewAspectRatio').split('/');
|
|
return int.parse(rational[0]) / int.parse(rational[1]);
|
|
}
|
|
}
|