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

Ginkgo utf8 label. Copy helper

parent 9aa690db
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,15 @@ void copyPublicKeyToClipboard(BuildContext context,
content: Text(tr(feedbackText ?? 'key_copied_to_clipboard')))));
}
void copyToClipboard(
{required BuildContext context,
required String uri,
required String feedbackText}) {
FlutterClipboard.copy(uri).then((dynamic value) =>
ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(content: Text(tr(feedbackText)))));
}
const Color defAvatarBgColor = Colors.grey;
const Color defAvatarColor = Colors.white;
const double defAvatarSize = 24;
......@@ -517,4 +526,4 @@ void showQrDialog({
bool get isIOS => !kIsWeb && Platform.isIOS;
const String userNameSuffix = ' (Ğ1nkgo)';
const String userNameSuffix = ' ';
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