Merge pull request #1530 from ChrisElliotUK/develop
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
applied correctly.
|
applied correctly.
|
||||||
- [[#1525]](https://github.com/GetStream/stream-chat-flutter/issues/1525) Fixed `StreamQuotedMessageWidget` message for
|
- [[#1525]](https://github.com/GetStream/stream-chat-flutter/issues/1525) Fixed `StreamQuotedMessageWidget` message for
|
||||||
deleted messages not being shown correctly.
|
deleted messages not being shown correctly.
|
||||||
|
- [[#1529]](https://github.com/GetStream/stream-chat-flutter/issues/1529) Fixed fix `ClipboardData` requires non-nullable string as text on Flutter 3.10.
|
||||||
|
|
||||||
✅ Added
|
✅ Added
|
||||||
|
|
||||||
|
|||||||
@@ -1009,7 +1009,8 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
|||||||
title: Text(context.translations.copyMessageLabel),
|
title: Text(context.translations.copyMessageLabel),
|
||||||
onClick: () {
|
onClick: () {
|
||||||
Navigator.of(context, rootNavigator: true).pop();
|
Navigator.of(context, rootNavigator: true).pop();
|
||||||
Clipboard.setData(ClipboardData(text: widget.message.text));
|
final text = widget.message.text;
|
||||||
|
if (text != null) Clipboard.setData(ClipboardData(text: text));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (shouldShowEditAction) ...[
|
if (shouldShowEditAction) ...[
|
||||||
@@ -1168,8 +1169,10 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
|||||||
? DisplayWidget.gone
|
? DisplayWidget.gone
|
||||||
: DisplayWidget.show,
|
: DisplayWidget.show,
|
||||||
),
|
),
|
||||||
onCopyTap: (message) =>
|
onCopyTap: (message) {
|
||||||
Clipboard.setData(ClipboardData(text: message.text)),
|
final text = message.text;
|
||||||
|
if (text != null) Clipboard.setData(ClipboardData(text: text));
|
||||||
|
},
|
||||||
messageTheme: widget.messageTheme,
|
messageTheme: widget.messageTheme,
|
||||||
reverse: widget.reverse,
|
reverse: widget.reverse,
|
||||||
showDeleteMessage: shouldShowDeleteAction,
|
showDeleteMessage: shouldShowDeleteAction,
|
||||||
|
|||||||
Reference in New Issue
Block a user