Skip to content
pubscout

pasteboard

0.6.2, released yesterday by mixin.dev

Read and write images, files, and text to the system clipboard across platforms.

WASM-ready
$ flutter pub add pasteboard
Source repository

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.

Works with

Packages commonly used together with pasteboard: ones it builds on, ones built on it, and its own family.