fix swipeable visible on navigation back

This commit is contained in:
Salvatore Giordano
2021-03-15 10:47:49 +01:00
parent 8ec54f3834
commit ff415442a0
@@ -1021,7 +1021,10 @@ class _MessageListViewState extends State<MessageListView> {
!message.isSystem && !message.isSystem &&
!message.isEphemeral && !message.isEphemeral &&
widget.onMessageSwiped != null) { widget.onMessageSwiped != null) {
child = Swipeable( child = Container(
decoration: BoxDecoration(),
clipBehavior: Clip.hardEdge,
child: Swipeable(
onSwipeEnd: () { onSwipeEnd: () {
FocusScope.of(context).unfocus(); FocusScope.of(context).unfocus();
widget.onMessageSwiped(message); widget.onMessageSwiped(message);
@@ -1029,7 +1032,8 @@ class _MessageListViewState extends State<MessageListView> {
backgroundIcon: StreamSvgIcon.reply( backgroundIcon: StreamSvgIcon.reply(
color: StreamChatTheme.of(context).colorTheme.accentBlue, color: StreamChatTheme.of(context).colorTheme.accentBlue,
), ),
child: Container(child: child), child: child,
),
); );
} }