pasteboard
0.6.2, released yesterday by mixin.dev
Read and write images, files, and text to the system clipboard across platforms.
What it does
Provides a Flutter plugin to access clipboard contents such as images, files, HTML, and text. It supports reading from and writing to the clipboard on mobile, desktop, and web.
AI-written summary of version 0.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to copy or paste files, images, or text programmatically.
- Cross‑platform clipboard access is required without writing platform‑specific code.
Skip it when
- You only need simple text copy/paste (Clipboard class suffices).
- You require advanced clipboard features not covered by this plugin.
Strengths
- Supports all major platforms including web and desktop.
- Handles both read and write for images, files, HTML, and text.
Weaknesses
- Android requires manual manifest and provider setup.
- No built‑in UI components; you must implement your own.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 3
On Android add a FileProvider entry in AndroidManifest.xml and create provider_paths.xml as described in the README.
import 'package:pasteboard/pasteboard.dart';
Future<void> demo() async {
await Pasteboard.writeFiles(['path/to/file.txt']);
final files = await Pasteboard.files();
print(files);
final imageBytes = await Pasteboard.image;
print(imageBytes?.length);
}Alternatives
Packages that do the same job and could replace pasteboard.
- saf_stream
Read and write Android Storage Access Framework (SAF) documents.
71Compare - image_picker_for_web
Web implementation of image_picker that lets users select images or videos via the browser file picker.
79Compare - file_selector_macos
macOS implementation of the file_selector plugin
82Compare - pdf_combiner
Merge multiple PDF documents and images into a single file or extract images from PDFs.
85Compare
Works with
Packages commonly used together with pasteboard: ones it builds on, ones built on it, and its own family.