From 2056a200bddc8a8f72759af6cde0db6a5b255a0f Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sun, 29 Jan 2023 19:38:30 +0300 Subject: [PATCH] Update widget_button_measure.dart --- .../bottom_controls/components/widget_button_measure.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/screens/metering/components/bottom_controls/components/widget_button_measure.dart b/lib/screens/metering/components/bottom_controls/components/widget_button_measure.dart index 77f0a13..cfecb86 100644 --- a/lib/screens/metering/components/bottom_controls/components/widget_button_measure.dart +++ b/lib/screens/metering/components/bottom_controls/components/widget_button_measure.dart @@ -36,6 +36,11 @@ class _MeteringMeasureButtonState extends State { _isPressed = false; }); }, + onTapCancel: () { + setState(() { + _isPressed = false; + }); + }, child: DecoratedBox( decoration: BoxDecoration( borderRadius: BorderRadius.circular(widget.size / 2),