diff --git a/packages/stream_chat_flutter/lib/src/message_input/audio_message_send_button/stream_audio_message_send_button.dart b/packages/stream_chat_flutter/lib/src/message_input/audio_message_send_button/stream_audio_message_send_button.dart index aff24d985..f33f38157 100644 --- a/packages/stream_chat_flutter/lib/src/message_input/audio_message_send_button/stream_audio_message_send_button.dart +++ b/packages/stream_chat_flutter/lib/src/message_input/audio_message_send_button/stream_audio_message_send_button.dart @@ -74,6 +74,7 @@ class _StreamAudioMessageSendButtonState if (_lockButtonOverlayController.isShowing) { _lockButtonOverlayController.hide(); } + _lockButtonTimer?.cancel(); super.dispose(); } @@ -178,12 +179,15 @@ class _StreamAudioMessageSendButtonState child: const StreamAudioMessageControllers(), ), ), - DecoratedBox( - decoration: BoxDecoration( - color: iconBackgroundColor, - shape: BoxShape.circle, + Padding( + padding: const EdgeInsets.all(1.5), + child: DecoratedBox( + decoration: BoxDecoration( + color: iconBackgroundColor, + shape: BoxShape.circle, + ), + child: icon, ), - child: icon, ), ], ),