Skip to content
pubscout

sensitive_clipboard

1.2.0, released 7 months ago by marcello.dev

Flutter plugin to copy sensitive content to clipboard, hiding it on Android 13.

WASM-ready
$ flutter pub add sensitive_clipboard
Source repository

What it does

Wraps the default clipboard and uses Android 13's sensitive flag to prevent the copied text from being shown in the system UI. On iOS it falls back to the standard clipboard behavior.

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

Use it when

  • You need to copy confidential data on Android 13 without showing it in the pop‑up notification
  • You want a simple API to hide sensitive clipboard content across Android and iOS

Skip it when

  • Targeting only older Android versions where the flag is unnecessary
  • You need full clipboard management (e.g., rich content, multiple formats)

Strengths

  • Hides sensitive content on Android 13
  • Simple static method API
  • Works on both Android and iOS

Weaknesses

  • Only supports copy (paste support added later but limited)
  • Requires compileSdkVersion 33
  • No advanced clipboard features

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Set compileSdkVersion to 33 in android/app/build.gradle; no additional permissions required.

import 'package:sensitive_clipboard/sensitive_clipboard.dart';

void copySecret() {
  SensitiveClipboard.copy('Sensitive-Content');
}