mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-30 00:36:28 +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}));
|
||
|
}
|