mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 06:19:22 +00:00
15 lines
385 B
Dart
15 lines
385 B
Dart
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})!);
|
|
}
|