clippoard_listener_plus 0.0.1 copy "clippoard_listener_plus: ^0.0.1" to clipboard
clippoard_listener_plus: ^0.0.1 copied to clipboard

A Flutter plugin to listen to clipboard changes on Android and iOS.

📋 clipboard_listener #

A Flutter plugin that listens for clipboard changes on Android and iOS.

Features #

  • 🔄 Realtime clipboard change listener
  • ✅ Works on Android and iOS
  • tested on android 10 , 13

Usage #

import 'package:flutter/material.dart';
import 'package:clipboard_listener/clipboard_listener.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(home: ClipboardPage());
  }
}

class ClipboardPage extends StatefulWidget {
  const ClipboardPage({super.key});
  @override
  State<ClipboardPage> createState() => _ClipboardPageState();
}

class _ClipboardPageState extends State<ClipboardPage> {
  String text = 'Waiting...';

  @override
  void initState() {
    super.initState();
    ClipboardListener.clipboardStream.listen((value) {
      setState(() => text = value);
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Clipboard Listener')),
      body: Center(child: Text(text)),
    );
  }
}
1
likes
0
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to listen to clipboard changes on Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on clippoard_listener_plus

Packages that implement clippoard_listener_plus