flutter_clipboard 1.0.1 copy "flutter_clipboard: ^1.0.1" to clipboard
flutter_clipboard: ^1.0.1 copied to clipboard

discontinued
outdated

A Flutter plugin to retrieve text from clipboard and save text explicitly to clipboard in Android and iOS.

Flutter Clipboard #

Pub Package licence Download APK

A Flutter plugin to retrieve text from clipboard and save text explicitly to clipboard in Android and iOS.

DEMO

Usage #

1. Depend

Add this to you package's pubspec.yaml file:

dependencies:
  flutter_clipboard: ^1.0.1

2. Install

Run command:

$ flutter packages get

3. Import

Import in Dart code:

import 'package:flutter_clipboard/flutter_clipboard';

4. Using Flutter Clipboard

/// Retrieving Clipboard Text
FlutterClipboard.retrieve.then(
      (clipboardText) {
          print("Clipboard Text: $clipboardText");
      },
);

/// Copying Text To Clipboard
FlutterClipboard.send(text).then(
      (success) {
          if(success)
            print("Successfully copied <$text> to clipboard.");
          else
            print("Couldn't copy <$text> to clipboard.");
      },
);

License #

Copyright (c) 2019 Sarbagya Dhaubanjar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
0
likes
30
pub points
76%
popularity

Publisher

unverified uploader

A Flutter plugin to retrieve text from clipboard and save text explicitly to clipboard in Android and iOS.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_clipboard