Skip to content
Snippets Groups Projects
Commit e17df0a5 authored by vjrj's avatar vjrj
Browse files

Testing other clipboards

parent 943f432d
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,11 @@ void showTooltip(BuildContext context, String title, String message) {
}
void copyPublicKeyToClipboard(BuildContext context) {
/* final DataWriterItem item = DataWriterItem();
item.add(Formats.plainText(SharedPreferencesHelper().getPubKey()));
ClipboardWriter.instance.write(<DataWriterItem>[item]).then((dynamic value) =>
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(tr('key_copied_to_clipboard'))))); */
FlutterClipboard.copy(SharedPreferencesHelper().getPubKey()).then(
(dynamic value) => ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(tr('key_copied_to_clipboard')))));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment