A flutter plugin which could read image,files from clipboard and write files to clipboard.
Windows | ✅ |
Linux | ✅ |
macOS | ✅ |
iOS | ✅ |
Web | ✅ |
-
add
package:pasteboard
topubspec.yaml
dependencies: pasteboard: ^latest
-
example
import 'package:pasteboard/pasteboard.dart'; Future<void> readAndWriteFiles() async { final paths = ['your_file_path']; await Pasteboard.writeFiles(paths); final files = await Pasteboard.files(); print(files); } Future<void> readImages() async { final imageBytes = await Pasteboard.image; print(imageBytes?.length); }
See the LICENSE file for the full license.