Skip to content
pubscout

clipboard_monitor

0.9.3, released 7 months ago by mix1009.com

Flutter plugin that notifies when the system clipboard text changes on Android and iOS.

WASM-ready
$ flutter pub add clipboard_monitor
Source repository

What it does

Provides a static API to register callbacks that are invoked whenever the clipboard content is updated while the app is running. Supports registering multiple callbacks and removing them individually or all at once.

AI-written summary of version 0.9.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need real‑time clipboard change notifications inside a running app
  • You want a simple callback‑based API without streams or code generation

Skip it when

  • The app may be backgrounded or not running (monitoring stops)
  • You require clipboard access on Android 10+ when the app is not in focus

Strengths

  • Lightweight and easy to integrate
  • Works on both Android and iOS with a single API
  • No additional build steps or code generation required

Weaknesses

  • Does not work when the app is not in the foreground
  • Limited to text content only

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:clipboard_monitor/clipboard_monitor.dart';

void startClipboardMonitor() {
  ClipboardMonitor.registerCallback(onClipboardText);
}

void stopClipboardMonitor() {
  ClipboardMonitor.unregisterCallback(onClipboardText);
}

void onClipboardText(String text) {
  print('clipboard changed: $text');
}

void stopAllClipboardMonitoring() {
  ClipboardMonitor.unregisterAllCallbacks();
}

Alternatives

Packages that do the same job and could replace clipboard_monitor.