Android: remove message copied snackbar in favor of the system text copied chip
This commit is contained in:
1 parent
9334d556fe
commit
1d7c5abbec
2 files changed
+6
No files matched your search
@@ -2478,6 +2478,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
|||||||
|
|
||||||
void _copyMessageText(String text) {
|
void _copyMessageText(String text) {
|
||||||
Clipboard.setData(ClipboardData(text: text));
|
Clipboard.setData(ClipboardData(text: text));
|
||||||
|
// Android shows its own clipboard chip; the snackbar is redundant there
|
||||||
|
// and lingers over the input field after the chip dismisses.
|
||||||
|
if (PlatformInfo.isAndroid) return;
|
||||||
showDismissibleSnackBar(
|
showDismissibleSnackBar(
|
||||||
context,
|
context,
|
||||||
content: Text(context.l10n.chat_messageCopied),
|
content: Text(context.l10n.chat_messageCopied),
|
||||||
|
|||||||
@@ -1279,6 +1279,9 @@ class _ChatScreenState extends State<ChatScreen> {
|
|||||||
|
|
||||||
void _copyMessageText(String text) {
|
void _copyMessageText(String text) {
|
||||||
Clipboard.setData(ClipboardData(text: text));
|
Clipboard.setData(ClipboardData(text: text));
|
||||||
|
// Android shows its own clipboard chip; the snackbar is redundant there
|
||||||
|
// and lingers over the input field after the chip dismisses.
|
||||||
|
if (PlatformInfo.isAndroid) return;
|
||||||
showDismissibleSnackBar(
|
showDismissibleSnackBar(
|
||||||
context,
|
context,
|
||||||
content: Text(context.l10n.chat_messageCopied),
|
content: Text(context.l10n.chat_messageCopied),
|
||||||
|
|||||||
Reference in new issue
Block a user