mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-29 06:18:51 +00:00
15 lines
384 B
Dart
15 lines
384 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}));
|
|
}
|