m3_lightmeter/lib/platform_config.dart
2023-12-27 12:04:03 +01:00

11 lines
311 B
Dart

import 'dart:io';
class PlatformConfig {
const PlatformConfig._();
static double get cameraPreviewAspectRatio => Platform.isAndroid ? 240 / 320 : 288 / 352;
static String get cameraStubImage => const String.fromEnvironment('cameraStubImage');
static bool get isTest => cameraStubImage.isNotEmpty;
}