FLUTTER ECOSYSTEM

anuranBarman/ClipboardManager

एक फ्लटर प्लगइन जो टेक्स्ट को क्लिपबोर्ड में कॉपी करता है

क्लिपबोर्ड प्रबंधक प्रोजेक्ट कवर
Stars
17
Forks
17
अंतिम पुश (UTC)
2 सित॰ 2021
प्रोजेक्ट स्थिति
सक्रिय
Anuran Barman  GitHub avatar
GITHUB User

Anuran Barman ↗

I am a Principal Software Engineer. Fields of work are iOS,Flutter,NodeJS,React/NextJS,MongoDB

WiZN Systems Private LimitedBengaluru,India
भाषाएँRubyJavaDartSwiftObjective-C

तकनीकी विषय

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 1 आइटम
  • flutter{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

clipboard_manager

simple flutter plugin to copy text to clipboard in both android and ios.

Install

  • Add clipboard_manager to your dependencies list in pubspec.yaml file
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  clipboard_manager: ^0.0.1
  • Run flutter packages get from your root project

  • import the package by import 'package:clipboard_manager/clipboard_manager.dart';

Usage

ClipboardManager.copyToClipBoard("your text to copy").then((result) {
                        final snackBar = SnackBar(
                          content: Text('Copied to Clipboard'),
                          action: SnackBarAction(
                            label: 'Undo',
                            onPressed: () {},
                          ),
                        );
                        Scaffold.of(context).showSnackBar(snackBar);
                      });

Example

the plugin comes with an simplest example app. run it to see it in working.