1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 23:09:21 +00:00
comunicmobile/lib/utils/clipboard_utils.dart

15 lines
384 B
Dart
Raw Normal View History

2021-03-13 17:28:56 +00:00
import 'package:clipboard/clipboard.dart';
import 'package:comunic/utils/ui_utils.dart';
import 'package:flutter/cupertino.dart';
import 'intl_utils.dart';
/// Clipboard utilities
///
/// @author Pierre Hubert
void copyToClipboard(BuildContext context, String content) {
FlutterClipboard.copy(content);
snack(context, tr("'%1%' copied to clipboard!", args: {"1": content}));
}