mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 00:40:39 +00:00
11 lines
311 B
Dart
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;
|
|
}
|