flutter_clipboard_manager 0.0.1 flutter_clipboard_manager: ^0.0.1 copied to clipboard
A new flutter plugin project.
flutter_clipboard_manager #
Installation #
Add flutter_clipboard_manager
to your pubspec.yamlfile
.
Usage #
import 'package:flutter/material.dart';
import 'package:flutter_clipboard_manager/flutter_clipboard_manager.dart';
// Write to clipboard
FlutterClipboardManager.copyToClipBoard("Atchou chwiya!").then((result) {
if(result){
// Write to clipboard success
}
});
// Read from clipboard
FlutterClipboardManager.copyFromClipBoard().then((result) {
// Clipboard data
print(result);
});