remove clipboard stuff
This commit is contained in:
parent
0c118c5b67
commit
c048aee833
5 changed files with 10 additions and 23 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import "package:clipboard/clipboard.dart";
|
||||
import "package:flutter/material.dart";
|
||||
import "package:flutter/services.dart";
|
||||
import "package:flutter_hooks/flutter_hooks.dart";
|
||||
import "package:matrix/matrix.dart";
|
||||
import "package:nexus/helpers/extensions/room_to_children.dart";
|
||||
|
|
@ -27,7 +27,7 @@ class RoomMenu extends StatelessWidget {
|
|||
PopupMenuItem(
|
||||
onTap: () async {
|
||||
final link = await room.matrixToInviteLink();
|
||||
await FlutterClipboard.copy(link.toString());
|
||||
await Clipboard.setData(ClipboardData(text: link.toString()));
|
||||
},
|
||||
child: ListTile(leading: Icon(Icons.link), title: Text("Copy Link")),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue