mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
5602b1ed80
* 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]);
|
|
}
|
|
}
|