mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
allow stop metering if hasError
This commit is contained in:
parent
44fa4460fd
commit
1a7fc2e251
2 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue