allow stop metering if hasError

This commit is contained in:
Vadim 2023-05-16 10:07:38 +02:00
parent 44fa4460fd
commit 1a7fc2e251
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ class _MeteringMeasureButtonState extends State<MeteringMeasureButton> {
@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<MeteringMeasureButton> {
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),
),

View file

@ -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;