From 1a7fc2e2512eb51c4de83db36157e6e75b5a2862 Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 16 May 2023 10:07:38 +0200 Subject: [PATCH] allow stop metering if `hasError` --- .../components/measure_button/widget_button_measure.dart | 5 +++-- .../shared/readings_container/widget_container_readings.dart | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart b/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart index cf3aa23..80819ca 100644 --- a/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart +++ b/lib/screens/metering/components/bottom_controls/components/measure_button/widget_button_measure.dart @@ -35,7 +35,7 @@ class _MeteringMeasureButtonState extends State { @override Widget build(BuildContext context) { return IgnorePointer( - ignoring: widget.isMetering && widget.ev == null, + ignoring: widget.isMetering && widget.ev == null && !widget.hasError, child: GestureDetector( onTap: widget.onTap, onTapDown: (_) { @@ -67,8 +67,9 @@ class _MeteringMeasureButtonState extends State { child: Center( child: widget.hasError ? Icon( - Icons.error, + Icons.error_outline, color: Theme.of(context).colorScheme.surface, + size: Dimens.grid24, ) : (widget.ev != null ? _EvValueText(ev: widget.ev!) : null), ), 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 0e517f7..9edf2e7 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 @@ -11,7 +11,6 @@ import 'package:lightmeter/screens/metering/components/shared/readings_container import 'package:lightmeter/screens/metering/components/shared/readings_container/components/reading_value_container/widget_container_reading_value.dart'; import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; -/// Contains a column of fastest & slowest exposure pairs + a row of ISO and ND pickers class ReadingsContainer extends StatelessWidget { final ExposurePair? fastest; final ExposurePair? slowest;