Update widget_button_measure.dart

This commit is contained in:
Vadim 2023-01-29 19:38:30 +03:00
parent c110e06650
commit 2056a200bd

View file

@ -36,6 +36,11 @@ class _MeteringMeasureButtonState extends State<MeteringMeasureButton> {
_isPressed = false; _isPressed = false;
}); });
}, },
onTapCancel: () {
setState(() {
_isPressed = false;
});
},
child: DecoratedBox( child: DecoratedBox(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(widget.size / 2), borderRadius: BorderRadius.circular(widget.size / 2),