fix swipeable visible on navigation back
This commit is contained in:
@@ -1021,15 +1021,19 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
!message.isSystem &&
|
!message.isSystem &&
|
||||||
!message.isEphemeral &&
|
!message.isEphemeral &&
|
||||||
widget.onMessageSwiped != null) {
|
widget.onMessageSwiped != null) {
|
||||||
child = Swipeable(
|
child = Container(
|
||||||
onSwipeEnd: () {
|
decoration: BoxDecoration(),
|
||||||
FocusScope.of(context).unfocus();
|
clipBehavior: Clip.hardEdge,
|
||||||
widget.onMessageSwiped(message);
|
child: Swipeable(
|
||||||
},
|
onSwipeEnd: () {
|
||||||
backgroundIcon: StreamSvgIcon.reply(
|
FocusScope.of(context).unfocus();
|
||||||
color: StreamChatTheme.of(context).colorTheme.accentBlue,
|
widget.onMessageSwiped(message);
|
||||||
|
},
|
||||||
|
backgroundIcon: StreamSvgIcon.reply(
|
||||||
|
color: StreamChatTheme.of(context).colorTheme.accentBlue,
|
||||||
|
),
|
||||||
|
child: child,
|
||||||
),
|
),
|
||||||
child: Container(child: child),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user