From da95cb27cc968ff338218601174227b814735ece Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 15 Aug 2023 19:45:11 +0200 Subject: [PATCH] typo --- .../components/camera_container/widget_container_camera.dart | 2 +- .../shared/readings_container/widget_container_readings.dart | 2 +- .../widget_dialog_metering_screen_layout_features.dart | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/screens/metering/components/camera_container/widget_container_camera.dart b/lib/screens/metering/components/camera_container/widget_container_camera.dart index beadb34..0514d92 100644 --- a/lib/screens/metering/components/camera_container/widget_container_camera.dart +++ b/lib/screens/metering/components/camera_container/widget_container_camera.dart @@ -135,7 +135,7 @@ class CameraContainer extends StatelessWidget { } double _cameraPreviewHeight(BuildContext context) { - return ((MediaQuery.of(context).size.width - Dimens.grid8 - 2 * Dimens.paddingM) / 2) / + return ((MediaQuery.sizeOf(context).width - Dimens.grid8 - 2 * Dimens.paddingM) / 2) / PlatformConfig.cameraPreviewAspectRatio; } } diff --git a/lib/screens/metering/components/shared/readings_container/widget_container_readings.dart b/lib/screens/metering/components/shared/readings_container/widget_container_readings.dart index 78f5688..c9f6f54 100644 --- a/lib/screens/metering/components/shared/readings_container/widget_container_readings.dart +++ b/lib/screens/metering/components/shared/readings_container/widget_container_readings.dart @@ -39,7 +39,7 @@ class ReadingsContainer extends StatelessWidget { children: [ if (UserPreferencesProvider.meteringScreenFeatureOf( context, - MeteringScreenLayoutFeature.extremeExposurePairs, + MeteringScreenLayoutFeature.equipmentProfiles, )) ...[ const _EquipmentProfilePicker(), const _InnerPadding(), diff --git a/lib/screens/settings/components/metering/components/metering_screen_layout/components/meterins_screen_layout_features_dialog/widget_dialog_metering_screen_layout_features.dart b/lib/screens/settings/components/metering/components/metering_screen_layout/components/meterins_screen_layout_features_dialog/widget_dialog_metering_screen_layout_features.dart index d8dbe5d..a043a12 100644 --- a/lib/screens/settings/components/metering/components/metering_screen_layout/components/meterins_screen_layout_features_dialog/widget_dialog_metering_screen_layout_features.dart +++ b/lib/screens/settings/components/metering/components/metering_screen_layout/components/meterins_screen_layout_features_dialog/widget_dialog_metering_screen_layout_features.dart @@ -36,6 +36,7 @@ class _MeteringScreenLayoutFeaturesDialogState extends State