mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-05-13 11:40:42 +00:00
wip
This commit is contained in:
parent
c95dcf3565
commit
44304a0bc2
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:lightmeter/providers/equipment_profile_provider.dart';
|
import 'package:lightmeter/providers/equipment_profile_provider.dart';
|
||||||
import 'package:lightmeter/providers/films_provider.dart';
|
import 'package:lightmeter/providers/films_provider.dart';
|
||||||
|
@ -115,7 +117,9 @@ final mockEquipmentProfiles = [
|
||||||
IsoValue(1600, StopType.full),
|
IsoValue(1600, StopType.full),
|
||||||
IsoValue(3200, StopType.full),
|
IsoValue(3200, StopType.full),
|
||||||
],
|
],
|
||||||
lensZoom: 1.91,
|
lensZoom: Platform.isAndroid
|
||||||
|
? 2.083333 // Pixel 6
|
||||||
|
: 1.923, // iPhone 13 Pro
|
||||||
),
|
),
|
||||||
EquipmentProfile(
|
EquipmentProfile(
|
||||||
id: '2',
|
id: '2',
|
||||||
|
@ -145,7 +149,9 @@ final mockEquipmentProfiles = [
|
||||||
IsoValue(1600, StopType.full),
|
IsoValue(1600, StopType.full),
|
||||||
IsoValue(3200, StopType.full),
|
IsoValue(3200, StopType.full),
|
||||||
],
|
],
|
||||||
lensZoom: 5.02,
|
lensZoom: Platform.isAndroid
|
||||||
|
? 5.625 // Pixel 6
|
||||||
|
: 5.1923, // iPhone 13 Pro
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ class CameraInfoService {
|
||||||
|
|
||||||
const CameraInfoService();
|
const CameraInfoService();
|
||||||
|
|
||||||
|
// TODO: fix focal length for iOS screenshots
|
||||||
|
// TODO: fix integration test (find 1.91x)
|
||||||
Future<int?> mainCameraEfl() async {
|
Future<int?> mainCameraEfl() async {
|
||||||
final focalLength = await cameraInfoPlatformChannel.invokeMethod<double?>('mainCameraEfl');
|
final focalLength = await cameraInfoPlatformChannel.invokeMethod<double?>('mainCameraEfl');
|
||||||
return focalLength?.round();
|
return focalLength?.round();
|
||||||
|
|
Loading…
Reference in a new issue