flutter_clipboard_manager

ezgif-1-e24ee065ce48

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);
});

Libraries

flutter_clipboard_manager