pasteboard 0.3.0 copy "pasteboard: ^0.3.0" to clipboard
pasteboard: ^0.3.0 copied to clipboard

A flutter plugin which could read image,files from clipboard and write files to clipboard.

pasteboard #

Pub

A flutter plugin which could read image,files from clipboard and write files to clipboard.

Windows
Linux
macOS
iOS
Web

Getting Started #

  1. add package:pasteboard to pubspec.yaml

    dependencies:
      pasteboard: ^latest
    
  2. example

    import 'package:pasteboard/pasteboard.dart';
    
    Future<void> readAndWriteFiles() async {
      final paths = ['your_file_path'];
      await Pasteboard.writeFiles(paths);
    
      final files = await Pasteboard.files();
      print(files);
    }
    
    Future<void> readImages() async {
      final imageBytes = await Pasteboard.image;
      print(imageBytes?.length);
    }
    

License #

See the LICENSE file for the full license.

88
likes
150
pub points
96%
popularity

Publisher

verified publishermixin.dev

A flutter plugin which could read image,files from clipboard and write files to clipboard.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, path, uuid, web

More

Packages that depend on pasteboard