1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00
comunicmobile/lib/utils/clipboard_utils.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}));
}