flutter_clipboard 1.0.1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new69

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.

1.0.1 #

  • Fixed Demo APK.
  • Changed Demo GIF

1.0.0 #

  • Initial release.

example/README.md

Flutter Clipboard Example #

Demonstrates how to use the flutter_clipboard plugin.

Complete Example

/// 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.");
      },
);

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_clipboard: ^1.0.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_clipboard/flutter_clipboard.dart';
  
Version Uploaded Documentation Archive
1.0.1 Mar 23, 2019 Go to the documentation of flutter_clipboard 1.0.1 Download flutter_clipboard 1.0.1 archive
1.0.0 Mar 21, 2019 Go to the documentation of flutter_clipboard 1.0.0 Download flutter_clipboard 1.0.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
38
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
69
Learn more about scoring.

We analyzed this package on Apr 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test