fixed camera button icon in void state

This commit is contained in:
Myzel394 2022-08-16 19:59:03 +02:00
parent 4a1d1c9026
commit eea08a0e9e

View File

@ -72,6 +72,18 @@ class _CameraButtonState extends State<CameraButton> {
widget.onVideoEnd(); widget.onVideoEnd();
} }
}, },
onTapCancel: () {
setState(() {
videoInAnimationActive = false;
animateToVideoIcon = false;
});
},
onPanCancel: () {
setState(() {
videoInAnimationActive = false;
animateToVideoIcon = false;
});
},
onLongPress: () { onLongPress: () {
if (widget.disabled) { if (widget.disabled) {
return; return;