2023-01-07 10:23:54 +00:00
|
|
|
class PlatformConfig {
|
2023-05-11 13:30:18 +00:00
|
|
|
const PlatformConfig._();
|
|
|
|
|
2023-01-07 10:23:54 +00:00
|
|
|
static double get cameraPreviewAspectRatio {
|
2023-01-26 15:03:48 +00:00
|
|
|
final rational = const String.fromEnvironment('cameraPreviewAspectRatio').split('/');
|
2023-01-07 10:23:54 +00:00
|
|
|
return int.parse(rational[0]) / int.parse(rational[1]);
|
|
|
|
}
|
2023-09-28 21:29:33 +00:00
|
|
|
|
|
|
|
static String get cameraStubImage => const String.fromEnvironment('cameraStubImage');
|
2024-01-13 17:20:58 +00:00
|
|
|
|
|
|
|
static bool get isTest => cameraStubImage.isNotEmpty;
|
2023-01-07 10:23:54 +00:00
|
|
|
}
|