mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 17:00:39 +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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return IgnorePointer(
|
return IgnorePointer(
|
||||||
ignoring: widget.isMetering && widget.ev == null,
|
ignoring: widget.isMetering && widget.ev == null && !widget.hasError,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: widget.onTap,
|
onTap: widget.onTap,
|
||||||
onTapDown: (_) {
|
onTapDown: (_) {
|
||||||
|
@ -67,8 +67,9 @@ class _MeteringMeasureButtonState extends State<MeteringMeasureButton> {
|
||||||
child: Center(
|
child: Center(
|
||||||
child: widget.hasError
|
child: widget.hasError
|
||||||
? Icon(
|
? Icon(
|
||||||
Icons.error,
|
Icons.error_outline,
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
|
size: Dimens.grid24,
|
||||||
)
|
)
|
||||||
: (widget.ev != null ? _EvValueText(ev: widget.ev!) : null),
|
: (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: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';
|
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 {
|
class ReadingsContainer extends StatelessWidget {
|
||||||
final ExposurePair? fastest;
|
final ExposurePair? fastest;
|
||||||
final ExposurePair? slowest;
|
final ExposurePair? slowest;
|
||||||
|
|
Loading…
Reference in a new issue